[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pcc] First cut of m68k support.



Anders Magnusson dixit:

>> Please share your testcase, so I can test better ☻
>>
> sun3$ uname -a
> NetBSD sun3 6.1 NetBSD 6.1 (GENERIC)
> sun3% echo 'main(){printf("Hello World\n"); }' > x.c
> sun3% pcc -S x.c
> sun3% gcc x.s
> sun3% ./a.out
> Hello World

Okay, this translates to (with mksh as user shell):

root@ara4:~ # print -r -- 'main() { printf("Hello World\n"); return (0); }' >x.c
root@ara4:~ # /opt/pcc/bin/pcc x.c && ./a.out
Hello World
root@ara4:~ # size a.out ; file a.out
   text    data     bss     dec     hex filename
    794     244       8    1046     416 a.out
a.out: ELF 32-bit MSB executable, Motorola 68020, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

So, working so far, on GNU/Linux and with my patch.
Still need to be able to use more/different test cases,
so I can test whether the csu files do what they’re
supposed to (I normally hack BSD, not Linux).

bye,
//mirabilos
-- 
> Wish I had pine to hand :-( I'll give lynx a try, thanks.

Michael Schmitz on nntp://news.gmane.org/gmane.linux.debian.ports.68k
a.k.a. {news.gmane.org/nntp}#news.gmane.linux.debian.ports.68k in pine


Reply to: