3 Sep 2006 18:39
argc argv example included
john david gray <johndgray2003 <at> tiscali.co.uk>
2006-09-03 16:39:56 GMT
2006-09-03 16:39:56 GMT
<linux-assembly <at> vger.kernel.org>
to <majordomo <at> vger.kernel.org>
subscribe linux-assembly
Hi,
I am doing a bit of assembly - for conversion of a Pascal compiler
I'm doing {PQC 68000} . I did some work on it in it's original
Pascal, and have since converted it into C , though it still
currently produces 68k assembler. I have it running in linux {gcc}.
I started doing some x86 assembler using nasm , and then swapped
to as {gas} for its att mode.
There seems to be a problem with argc {or is it just me?}
where an offset has to be manually adjusted to give the correct
number {length of args}.
I'm using Slackware9.1 with gcc 3.2.3
'bye John Gray
p.s.
Here's a program that exhibits this behaviour:
save ascii
cut, save as kat09.s and assemble :
as -o kat09.o kat09.s
ld -o kat09 kat09.o
echo "kat09 OK"
(Continue reading)
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at
RSS Feed