|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: get SP on Solaris (SPARC) with GCC 3.3.2
From: Manu (nobody
guzu.net)
Date: Mon Dec 27 2004 - 20:48:56 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Inode wrote:
> On my box the problem seem to be another...
>
> (gdb) disass get_sp
> Dump of assembler code for function get_sp:
> 0x00010dd8 <get_sp+0>: mov %sp, %i0
> 0x00010ddc <get_sp+4>: retl
> 0x00010de0 <get_sp+8>: nop
> End of assembler dump.
> (gdb)
>
> but doesn't work...
>
> Another way to get SP (maybe more simple) it's get the ARGV[0] of out
> program... work fine, but now I would try to undestand why with gcc
> 3.3.2 doesn't work this function...
Maybe you should try to take a look at:
http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Extended-Asm.html#Extended-Asm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]