# 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
wat is the errr
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
maybe:
Code: Select all
.comm stack, STACKSIZE 32
Code: Select all
.comm stack STACKSIZE, 32
Website: https://joscor.com
Also remember that the third operand is only recognized when compiling to ELF.
For another executable format, try:
and see if that works.
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
"Sufficiently advanced stupidity is indistinguishable from malice."