www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/20/14:59:08

From: Mat Hostetter <iclone!mjhostet AT cs DOT unm DOT edu>
Date: Tue, 20 Jul 93 11:40:23 -0600
To: Ken Ellis <moosehead.aero.org!gke AT cs DOT unm DOT edu>
Subject: Re: compiler/assembler labels/symbols
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

What you are doing should work fine.  Please provide a test case that  
demonstrates the problem.  Here is a test program, and the results of  
building it on my (cross-compiling) djgpp system.  It does what you  
think it should do.

-Mat


extern void bar (void);

void
foo ()
{
  bar ();
}


Generates this assembly:

	.file	"quam.c"
gcc2_compiled.:
___gnu_compiled_c:
.text
	.align 4
.globl _foo
_foo:
	pushl %ebp
	movl %esp,%ebp
	call _bar
	movl %ebp,%esp
	popl %ebp
	ret


Which is assembled to use these symbols:

00000000 t ___gnu_compiled_c
         U _bar
00000000 T _foo
00000000 t gcc2_compiled.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019