Including assembly query

Archives Forums/MacOS X Discussion/Including assembly query

DannyD(Posted 2006) [#1]
Now that Windows and Mac OS share the same architecture I imagine assembly langauge is the same on both platforms? The registers are the same, the opcode is the same there am I right in assuming assembly language is crossplaform between Windows and Mac Os ? Anyone got any links/tips on coding assembly on Mac Os X?


Brucey(Posted 2006) [#2]
As long as you remember that your iBook G4 won't be using the same assembler as an Intel Mac :-)

Google says this looks like a good place to start :

http://developer.apple.com/documentation/DeveloperTools/Reference/Assembler/ASMIntroduction/chapter_1_section_1.html


:o)


ImaginaryHuman(Posted 2006) [#3]
Asm rocks for speed, but it can be very complicated and take lots of time to get results.


DannyD(Posted 2006) [#4]
Just to confirm, any asm for Windows i386 machine will work on Mac X i386 boxes?


ImaginaryHuman(Posted 2006) [#5]
Well, the asm code itself should be runnable but if the asm code refers to any operating system calls or other libraries that are not on the mac it will not work.