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)
|