Re: Quick question about x86 asm

2001-07-19 Thread Terry Lambert
Farooq Mela wrote: cc -S is your friend. Right, well that can certainly help, but what gcc generates can be dependant on calling convention, optimization setting, c c, and though the code generated in one particular scenario may not be an absolute indicator of it's behavior. In other

Quick question about x86 asm

2001-07-18 Thread Farooq Mela
Hi -hackers, I'm developing some assembly routines that are called from a C library under FreeBSD. Some of these routines do not return anything (ie, prototyped in C, their return type is 'void'). Does the compiler expect that the asm routines that don't return anything will preserve the value

Re: Quick question about x86 asm

2001-07-18 Thread Terry Lambert
Farooq Mela wrote: Hi -hackers, I'm developing some assembly routines that are called from a C library under FreeBSD. Some of these routines do not return anything (ie, prototyped in C, their return type is 'void'). Does the compiler expect that the asm routines that don't return

Re: Quick question about x86 asm

2001-07-18 Thread Farooq Mela
Terry Lambert wrote: cc -S is your friend. Right, well that can certainly help, but what gcc generates can be dependant on calling convention, optimization setting, c c, and though the code generated in one particular scenario may not be an absolute indicator of it's behavior. In other words,