Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22113

assemble link programming ground up echo 0

$
0
0

I'm using code here, https://github.com/foomur/programming-ground-up, I'm on a 64 bit pc,

i've installed 32 bit libs

sudo apt-get install gcc-multilib

what I use to assemble and link:

as asm.asm -o asm.o && ld asm.o -o asm

no errors from either assembler, linker, and exe ./asm, but when I use echo $? I get a return of 0 every time, which I think is an error.

I've tried other assembly code(code isn't the problem), and other assembler and link codes: as --32 asm.asm -o asm.o && ld -melf_i386 asm.o -o asm but I think thats an exe for a 32 bit processor(that also shows no errors but an echo of 0 everytime), I don't know what I'm doing wrong. I'm also running Ubuntu through a VM if that matters


Viewing all articles
Browse latest Browse all 22113

Trending Articles