🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46449

Please help me implement cross-compiler

#46449
From: ASCII of America
Date: Tue, 15 Nov 1994 23:32
17 lines
1494 bytes
I am debugging an embedded RISC CPU at my company, and I need to be
able to compile C-like code to this CPU's assembler, and assemble that
to object code.  I will only be dealing with very simple programs, so
I don't expect to need a linker.  I have taken a look at the GCC and
GAS code, and find it quite opaque (I'm more an electrical engineer
than a programmer).  If I thought I could do the job with a few weeks
of hacking, I'd dive in, but I can't really estimate how long it will
take.

What would be the most straightforward way for me to implement this
compiler/assembler?  How long would it take a very experienced
programmer to modify GCC/GAS to some arbitrary, simple, new
instruction set?  How long for a modestly experienced (>40k lines of
C, >10k lines of elisp) programmer?

David Wuertele
dave@aoa.com
Technical Details
Message-ID: <ASCII.94Nov15153251@netcom6.netcom.com>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!gatech!howland.reston.ans.net!ix.netcom.com!netcom.com!netcom6!ascii

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,cb87932ab0dc4cdb,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-11-15 15:32:50 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!gatech!howland.reston.ans.net!ix.netcom.com!netcom.com!netcom6!ascii
From: ascii@netcom6.netcom.com (ASCII of America)
Subject: Please help me implement cross-compiler
Message-ID: <ASCII.94Nov15153251@netcom6.netcom.com>
Sender: ascii@netcom.com (ASCII of America)
Reply-To: dave@aoa.com
Organization: NETCOM On-line services
Date: Tue, 15 Nov 1994 23:32:50 GMT
Lines: 17