Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:30:34+00:00 2026-05-22T21:30:34+00:00

How do I go about porting gcc to a new architecture? I am specifically

  • 0

How do I go about porting gcc to a new architecture? I am specifically interested in the following architectures:

  • ARM (TI OMAPs)
  • TI MSP430
  • x86

but guidance on how to port to any architecture would go some way to solving my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:30:36+00:00Added an answer on May 22, 2026 at 9:30 pm

    Learning to port gcc is going to be a significantly non-trivial task. As a rough guide of what to expect, you will need to know:

    • The target architecture inside out. Literally, otherwise how else will you know how to convert C to it?
    • The C standard, so C89, C99 etc.
    • How compilers work. There are whole books on this.

    In order to start the process, you would typically start with the C-to-assembly translation on your host architecture, such that you could compile something for the target architecture (but on your host). You would then get to the stage where you can compile a compiler for your target architecture on your host. At this stage, you produce a compiler on the target which can then self-compile, so you now have gcc on the target.

    Once this work has been done, actually porting gcc is simply a case of building gcc from the host on the target. If that’s all you’re interested in, Linux from scratch is a very good guide for doing everything you’ll need to do (as gcc would, amongst other things, be a prerequisite for porting the kernel).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am porting some Haskell code to F# but a bit confused about the
I'm porting some C++ to Java, and encountered the following shorthand..but have no idea
I'm thinking about porting a database from Sql Server 2005 to MySQL. I've become
I'm about to release a mobile phone app (starting with WP7, then porting to
I've run into an issue porting a codebase from linux (gcc) to windows (msvc).
I've recently obtained an HTC Desire and I'm interested in porting my 3D engine
The following segment demonstrates my issue: (compilation error on GCC) stringstream ss; string s;
I'm working on porting a Visual C++ application to GCC (should build on MingW
I am thinking about porting a Spring Quartz based application to EJB 3.1 to
I have a ruby on rails application and thinking about porting it to java.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.