This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: I really need help!


> 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");
}

or learn to code in assembler.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]