Subject: GCC: Mixing C and Assembler?
To: None <port-arm32@netbsd.org>
From: Riaz Randeree <RiazR@cat.co.za>
List: port-arm32
Date: 05/27/1999 10:16:41
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BEA819.44172F80
Content-Type: text/plain

Hello

Please help me
I have 4 questions:

1. I want to have a project consisting of ".c" and ".s" files. Using
   APCS32, what registers need to be preserved in the Assembler
functions
   called from "C" code? Is it r4-r14, f4-f7? 	 

2. Looking at some kernel ".s" files, ENTRY(xx) is used. Even though I
   include /usr/src/sys/arch/arm32/include/asm/h, this macro is not
expanded.
   Why?

3. Can I link an object file produced with ARMCC (Norcroft ARM C) with
GCC?

4. What are the pros and cons of using the inline assembly?

Any help will be greatly appreciated.

Riaz Randeree

------ =_NextPart_001_01BEA819.44172F80
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.1960.3">
<TITLE>GCC: Mixing C and Assembler?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello</FONT>
</P>

<P><FONT SIZE=2>Please help me</FONT>
<BR><FONT SIZE=2>I have 4 questions:</FONT>
</P>

<P><FONT SIZE=2>1. I want to have a project consisting of &quot;.c&quot; and &quot;.s&quot; files. Using</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; APCS32, what registers need to be preserved in the Assembler functions</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; called from &quot;C&quot; code? Is it r4-r14, f4-f7? &nbsp;&nbsp; </FONT>
</P>

<P><FONT SIZE=2>2. Looking at some kernel &quot;.s&quot; files, ENTRY(xx) is used. Even though I</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; include /usr/src/sys/arch/arm32/include/asm/h, this macro is not expanded.</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; Why?</FONT>
</P>

<P><FONT SIZE=2>3. Can I link an object file produced with ARMCC (Norcroft ARM C) with GCC?</FONT>
</P>

<P><FONT SIZE=2>4. What are the pros and cons of using the inline assembly?</FONT>
</P>

<P><FONT SIZE=2>Any help will be greatly appreciated.</FONT>
</P>

<P><FONT SIZE=2>Riaz Randeree</FONT>
</P>

</BODY>
</HTML>
------ =_NextPart_001_01BEA819.44172F80--