🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42501

Cross-compiler for unsupported machine

#42501
From: S.A. Belmonte
Date: Tue, 28 Nov 1995 00:00
26 lines
1333 bytes
Has anyone tried to use the gcc source (and others, gas, ld) as a
starting point for creating a cross-compiler for a processor/system
that is not included in the gcc distribution?

Specifically, I'm thinking of using gcc to compile C programs for a
6502 based machine. First of all, I need to know if it is a sensible
thing to even consider doing; if there is any major obstacle to
carrying out such a project, for example, the 6502 is an 8-bit
processor, will gcc need to be modified to cope with this?

I was hoping that I could specify the 6502 machine description and
write the necessary libraries in assembler and not have to modify gcc
at all.

Has anyone tried this type of thing before? Has anybody written a 6502
machine description, and is willing to give it to me or, at least, give me
pointers on how to write my own?

Any help would be greatly appreciated.

Thanks,

Scott.

--
Scott A. Belmonte | e-mail: bsa@dl.ac.uk
Technical Details
Message-ID: <49fgms$5bt@mserv1.dl.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d15da49fd9d3b034,start
X-Google-Attributes: gid11318c,public
From: bsa@dl.ac.uk (S.A. Belmonte)
Subject: Cross-compiler for unsupported machine
Date: 1995/11/28
Message-ID: <49fgms$5bt@mserv1.dl.ac.uk>
X-Deja-AN: 120512450
organization: Daresbury Laboratory, Warrington, UK.
newsgroups: gnu.gcc.help