Page 1 of 1
wat is the errr
Posted: Sat Apr 19, 2008 10:13 am
by aztex
# reserve initial kernel stack space
.set STACKSIZE, 0x4000 # that is, 16k.
.comm stack, STACKSIZE, 32 # reserve 16k stack on a quadword boundary
gcc says error at end of the line , first unrecogonised character
Posted: Sat Apr 19, 2008 10:20 am
by 01000101
honestly i know nothing about this, but normally, there are not 2 commas for one instruction, is it possible that the last instruction should only have one?
maybe:
or
Posted: Sat Apr 19, 2008 10:30 am
by Zenith
No, the two commas are right for GAS.
Which line generates the error? And are you sure you're compiling this as an Assembly file (.s/.S)?
Posted: Sat Apr 19, 2008 10:33 am
by aztex
the second line gives error..
Posted: Sat Apr 19, 2008 12:03 pm
by Zenith
Also remember that the third operand is only recognized when compiling to ELF.
For another executable format, try:
Code: Select all
# reserve initial kernel stack space
.set STACKSIZE, 0x4000 # that is, 16k.
.align 32
.comm stack, STACKSIZE # reserve 16k stack on a quadword boundary
and see if that works.