Re: Asm question (port from linux ppc)
Re: Asm question (port from linux ppc)
- Subject: Re: Asm question (port from linux ppc)
- From: Justin Walker <email@hidden>
- Date: Fri, 26 Nov 2004 20:26:48 -0800
On Nov 26, 2004, at 20:03, email@hidden wrote:
I trying to port an app from linux PPC to MacOSX. There is a short (3
lines)
routine in assembly that changes the stack pointer. The code assembles
fine in linux with both gcc 2.95 and 3.3.4 but Darwin gcc 3.1 doesn't
like it. I tried compiling a couple of short test programs to assembler
on both platforms and looked at the generated code. It looked pretty
different. Any ideas?? The code just moves a new stack pointer from a
global
variable into the stack pointer register (1) and returns.
I think the assembler for darwin has a different syntax than the Linux
version. Check, e.g., the ".s" files in the kernel source (xnu) at the
darwin website (<http://developer.apple.com/darwin>).
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden