Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PowerPC assembly jump table




On 3 apr 2006, at 21:34, Jakub Szefer wrote:

I am trying to write a jump table in assembly for the PowerPC
processor and am running into some problems with defining
external symbols.  I have something like:

   .globl function_new
   .extern function_old
function_new:
   b function_old

Have a look at the output of "gcc -S" when calling an external function in a C program. You have to create a stub like that as well (and the linker will remove it if it's not necessary). Additionally, all global symbols in Mac OS X automatically get an underscore prepended to them by GCC.



Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >PowerPC assembly jump table (From: Jakub Szefer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.