This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: building CALL_EXPR's with string constants
- To: gcc at gcc dot gnu dot org, mikenel at iapetus dot com
- Subject: Re: building CALL_EXPR's with string constants
- From: Mike Stump <mrs at windriver dot com>
- Date: Thu, 8 Jun 2000 14:01:34 -0700 (PDT)
I generally do this by writting the code in C, running emacs, and then
gdb in emacs, and then cc1 in gdb, and watch to see what cc1 does with
the code. Then I copy it. It'll show you the routines to call, how
to call them, what you need to check for, and so on... If you just
ask it. It usually gives pretty good advice.
> From: Michael Nelson <mikenel@iapetus.com>
> To: "'gcc@gcc.gnu.org'" <gcc@gcc.gnu.org>
> Date: Thu, 8 Jun 2000 15:26:05 -0400
> some difficulty figuring out how to call printf with a string
> constant.