You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been scratching my head trying to get some 64bit MASM Assembler working on XCode...
As it is widely advertised, modern x86_64 processors have 64-bit registers that can be used in backward-compatible fashion as 32-bit registers, 16-bit registers and even 8-bit registers, for example:
Been scratching my head trying to get some 64bit MASM Assembler working on XCode...
As it is widely advertised, modern x86_64 processors have 64-bit registers that can be used in backward-compatible fashion as 32-bit registers, 16-bit registers and even 8-bit registers, for example:
So it looks like I don't have the rax register available! Looks like I need to tell Xcode to compile for x64 bit
/usr/local/bin/nasm -f macho64 ${INPUT_FILE_PATH} -o ${SCRIPT_OUTPUT_FILE_0}
I see my Makefile uses
32
bit!If you’d rather create a 32-bit object file, you can supply the
-arch i386
parameter which is exactly what I have:CFLAGS=-Wall -O0 -g -arch i386 -lAlong32 -Llib -Wl,-no_pie
Also could you help me figure out how to link-assembly-routine-with-c-on-osx
Cheers!
The text was updated successfully, but these errors were encountered: