TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: JACK4747@GMAIL.COM
date: 2018-03-08 05:46:00
subject: Re: Compile Assembly and

Il giorno giovedì 8 marzo 2018 13:37:38 UTC+1, Martin Gregorie ha scritto:
> On Thu, 08 Mar 2018 18:18:34 +0800, Mr. Man-wai Chang wrote:
> 
> > On 8/3/2018 04:39, Tauno Voipio wrote:
> >>
> >> Are you sure that the ssembly code module is compatible with the ARM
> >> arcitecture and instruction set of the Pi?
> > 
> > I have never worked with ARM architecture, mostly x86. No comment on
> > that.
> 
> The best suggestion so far would seem to be from druck: write the module 
> that will contain the assembler as a prototype and an empty C function:
> 
> /* Prototype, put in a header file, myfunction.h  */
> int myfunction(int, char*);
> 

if you declare the function as "extern" the C compiler is happy enough, and
then the linker is able to correctly link it to the .asm function.

Bye Jack

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.