public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: PRASANTH RAJAGOPAL <prasanthris@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: preprocessing by gcc
Date: Tue, 31 May 2011 19:45:00 -0000	[thread overview]
Message-ID: <BANLkTikBQkdAm4YJTDYoQXWWyhaP9qY07w@mail.gmail.com> (raw)

Hi,

I am using eclipse to cross compile for an embedded processor, using
its bare metal gcc tools (assembler, compiler, linker). The toolchains
are installed properly
and the toolchain calls the gcc tools and utils one by one. All works well.

I am trying to build a C project that also has a CRT.S file included
as the preprocessed file for startup.

I read the following:
Preprocessing - The *as* internal preprocessor:It does not do macro
processing, include file handling, or anything else you may get from
your C compiler's preprocessor.

Now the way the toolchains are used, it appears that .S files are
preprocessed by the Assembler, because my MACROs in the .S are never
getting defined & in the make files I see that the .S files are given
to Assembler. Without going inside eclipse, how can I let the pre
processing to be done by Compiler instead of Assembler?

Hope it make sense, being new to some of these things!

Thanks

             reply	other threads:[~2011-05-31 15:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31 19:45 PRASANTH RAJAGOPAL [this message]
     [not found] ` <4DE54C39.4010803@andihellmund.com>
2011-06-01  5:34   ` PRASANTH RAJAGOPAL
2011-06-01  8:12     ` David Paterson
2011-06-01 13:00       ` PRASANTH RAJAGOPAL

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikBQkdAm4YJTDYoQXWWyhaP9qY07w@mail.gmail.com \
    --to=prasanthris@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).