Article View: gnu.gcc.help
Article #50067Cross-compiling for MC68008 on Sun 3
From: Peter Aagaard Favrholdt
Date: Fri, 19 Nov 1993 22:45
Date: Fri, 19 Nov 1993 22:45
35 lines
1974 bytes
1974 bytes
Hello. I'm making a little multitasking kernel in C for an autonomous guided vehicle equipped with a MC68008-computer. I use gcc-2.4.5 on a Sun 3 workstation for compiling the code before sending it to the AGV in Motorola's S-format. I would like to know if anyone have done the same thing, i.e. made programs for a MC68000 on a Sun 3. One of my problems is, that a piece of code need to be linked with two functions from libgcc.a : ___udivsi3 and ___umodsi3. It works when I test it on the sun, but if I use it on the MC68008 I get an IllegalInstruction-exception. I think this means libgcc.a contains non-MC68008-instructions, and that may be because the sun 3's got a MC68030 inside. I have tried to compile gcc-2.5.3 after modifying the makefile to use the -m68000 -flag for compiling. But with no succes. If anyone has got a library for the MC68000/MC68000 that works, could you please send me a mail? I'm also interested in hearing from people with experience in programming operating systems in C. I find it difficult to interface my assembly-functions to C. An how-I-managed-to-make-an-operating-system-in-C -story would be very interesting reading indeed. Thanks in advance. Peter Favrholdt -- ****************************** ** Email: pfavr@imada.ou.dk ** ******************************
Technical Details
Message-ID:
<1993Nov19.224537.28100@imada.ou.dk>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!sunic!uts!imada!pfavrShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3b4ce18174474d99,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-19 17:09:59 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!sunic!uts!imada!pfavr From: pfavr@imada.ou.dk (Peter Aagaard Favrholdt) Subject: Cross-compiling for MC68008 on Sun 3 Message-ID: <1993Nov19.224537.28100@imada.ou.dk> Sender: news@imada.ou.dk (USENET News System) Nntp-Posting-Host: idun Organization: Dept. of Math. & Computer Science, Odense University, Denmark Date: Fri, 19 Nov 1993 22:45:37 GMT Lines: 35