Re: [osol-discuss] SUN cc has the option -save_args?

2009-03-27 Thread Ian Collins
Jin Yao wrote: Hi, The X64 passes the first six arguments in registers %rdi, %rsi, Can I use one compiler option like -save_args to store argments in stack like what the i386 does? I tried this option, but it's failed. The logs are here: cc -O -g -save_args -m64 -c -o cpc.o

[osol-discuss] SUN cc has the option -save_args?

2009-03-25 Thread Jin Yao
Hi, The X64 passes the first six arguments in registers %rdi, %rsi, Can I use one compiler option like -save_args to store argments in stack like what the i386 does? I tried this option, but it's failed. The logs are here: cc -O -g -save_args -m64 -c -o cpc.o cpc.c cc: -a