This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: I really need help!
- To: mike stump <mrs at windriver dot com>
- Subject: Re: I really need help!
- From: Davide Libenzi <davidel at xmailserver dot org>
- Date: Thu, 18 Oct 2001 09:32:38 -0700 (PDT)
- cc: gavinux at yahoo dot com, <gcc at gcc dot gnu dot org>
On Wed, 17 Oct 2001, mike stump wrote:
> > Date: Wed, 17 Oct 2001 17:47:49 -0700 (PDT)
> > From: Gavin Li <gavinux@yahoo.com>
> > To: gcc@gcc.gnu.org
>
> > I am not sure if I should send this mail to here.
>
> Kinda _not_ what this list is for.
>
> > void start(void)
> > {
> > asm ("movl %esp, 0x5000");
> > }
>
> > My question is how can I get ride of the first two ASM
> > instructions?
>
> Go cheat off of newlib, or libc, or glibc, or netbsd, or freebsd...
>
> > I want the compiler to compile my inlined ASM instruction as the
> > first instruction in the start() function, and the other function
> > just as general output.
>
> Trivial:
>
> void mystart() {
> asm("start:");
> asm("movl %esp, 0x5000");
^^^^^^^^^^^^
The function startup code won't be the only one you're going to have with
this instruction, aka gcc swap intel syntax.
- Davide