Jarrod Smith

Passing classes and structs by value

Discussion created by Jarrod Smith on Nov 7, 2008
Latest reply on Nov 20, 2008 by Jarrod Smith
Say I have a struct or class that is register sized.

Code:
struct ByValuePlease{    int val;}

Most compilers won't pass this by value in a register. Is there a pragma or something (apart from casting) that will force Codewarrior to pass-by-value in a register?



Message Edited by Jarrod on 2008-11-07 06:00 AM

Message Edited by Jarrod on 2008-11-07 06:03 AM

Outcomes