Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * General instructions:
- * =====================
- * Compile with: gcc -O0 -g -o fct_call
- * Disassemble with: objdump -M intel fct_call
- */
- int first_function(int a, int b, int c)
- {
- return (a + b + c);
- }
- float second_function(float a, float b, float c)
- {
- return (a + b + c);
- }
- float third_function(int a, float b, int c)
- {
- return (a + b + c);
- }
- int boaring_function(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)
- {
- return (a + b + c + d + e + f + g + h + i +j);
- }
- int main(int argc, char** argv)
- {
- first_function(1, 2, 3);
- second_function(1.0, 2.0, 3.0);
- third_function(1, 2.0, 3);
- boaring_function(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement