Skip to main content

Questions tagged [calling-conventions]

1 vote
2 answers
350 views

I have a personal project, I want to write a JIT compiler/runtime in Rust (well, the language is not that relevant). I'm thinking about using a technique where the code is interpreted first and then ...
freakish's user avatar
  • 3,085
-1 votes
1 answer
123 views

In Computer Systems: a Programmer's Perspective: procedure calls may involve passing data as arguments, and returning from a procedure may also involve returning a value. With x86-64, most of these ...
Tim's user avatar
  • 5,565
4 votes
1 answer
253 views

For quite a long time now, I have been using a calling convention from C++ google style guide, which boils down to the following: "[for a function] arguments are values or const references while ...
Anton Daneyko's user avatar
7 votes
2 answers
6k views

So, I'm learning assembly, and I've come to know the ABIs and i got some basics tests working using the cdecl calling convention to use the c's stdlib under nasm. But I've seen other Calling ...
Nande's user avatar
  • 173
33 votes
6 answers
10k views

Why not have the compiler take a program like this: function a(b) { return b^2 }; function c(b) { return a(b) + 5 }; and convert it into a program like this: function c(b) { return b^2 + 5 }; ...
moonman239's user avatar
  • 2,063
5 votes
4 answers
4k views

As far as I am aware, python is generally referred to as 'call-by-sharing', but does it implement this with call-by-value (like Java) or call-by-reference? or something else? I would appreciate if ...
Tim Atkinson's user avatar
5 votes
2 answers
1k views

I know that Java is by default call-by-value but I am not sure where in the Java Language Specification this is addressed. Google searching only seems to find me unofficial sources but never points to ...
Tim Atkinson's user avatar
5 votes
2 answers
9k views

So I understand that thiscall doesn't really exist in x64 programming. However, I can't really find any definitive explanation as to where the this pointer is put to be passed to the callee. Is a x64 ...
Qix - MONICA WAS MISTREATED's user avatar
9 votes
2 answers
15k views

I am starting to learn Java with the Java Trails tutorials offered by Oracle. I am in the section where it talks about passing arguments to methods The Java™ Tutorials: Passing Information to a Method ...
Daniel Scocco's user avatar