khuck / argument_perftest

Test of the cost of passing lists of arguments to functions in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

argument_perftest

Test of the cost of passing lists of arguments to functions in C

This is a test to determine whether passing multiple stack (register) variables is lower overhead than packaging up the varaibles into a structure and passing the address of the structure.

To run the test, modify main.c and change the GHZ of the processor on which you are running to estimate the number of cycles per invocation.

I haven't validated my math/stats, so it's fair to assume I might have made a mistake or two.

About

Test of the cost of passing lists of arguments to functions in C


Languages

Language:C 92.6%Language:Makefile 7.4%