| ??? 01/02/04 12:11 Read: times |
#61732 - OT: C parameter by reference or by value |
From embedded systems point of view would it be more efficient if in C another way of passing the parameters is used: by reference?
A specific instance that can think of is where I create a subroutine just to breakup a larger program, and that subroutine is not called from anywhere else. Or for passing int and float values, which otherwise require more than a byte to pass and can be simply passed by reference using an iram 1 byte pointer. This may not be according to ANSI, but it can be optional like in VB, so it does not violate any standards. |



