TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: JACK4747@GMAIL.COM
from: THE NATURAL PHILOSOPHER
date: 2018-03-08 14:47:00
subject: Re: Compile Assembly and

On 08/03/18 13:46, jack4747@gmail.com wrote:
> 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.
>

Yes, but that doesn't address the issue of knowing what the calling
conventions and register  usage is in the compiler.

Being able to write and link the assembler is no guarantee it will WORK,
if for example you use the stack register as a scratchpad ;-)


> Bye Jack
>


--
The lifetime of any political organisation is about three years before
its been subverted by the people it tried to warn you about.

Anon.

--- 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™.