Forum > Other
assembler
Curt Carpenter:
For an example of ASM use in FPC, see /fpcsrc/rtl/i386/i386.inc
Thaddy:
Curt,
Fred is a seasoned programmer.
If he has a problem it is not about using assembler at all.
The problem he has is the tool chain. IOW the correct assembler and linker for the FreeBSD platform.
Maybe Marcov can help him, he is more versed in the BSD stuff, which I only run for tests in VM's.
Fred vS:
Thanks Thaddy for the adjective!
The problem is in the assembler code of system.ppu.
When cross-compiling fpc himself from Linux arm64 to FreeBSD aarch64, using the info of Pierre from there:
https://downloads.freepascal.org/fpc/snapshot/trunk/aarch64-freebsd/README-fpc-3.3.1.aarch64-freebsd.built.on.x86_64-linux
No problem, the cross-assembler works and assemble system.ppu.
But strangely on a real aarch64 FreeBSD (Rpi3 b) the compilation fails because unknown operand for the "official" as assembler.
See picture of previous post: https://forum.lazarus.freepascal.org/index.php/topic,67915.msg523881.html#msg523881
To resume: fpc 3.3.1 source to binary can be done by cross-compilation but not by direct-compilation.
It is not a big problem only if you want to recompile fpc using your Rpi.
Curt Carpenter:
--- Quote from: Thaddy on July 17, 2024, 05:33:31 pm ---Curt,
Fred is a seasoned programmer.
If he has a problem it is not about using assembler at all.
The problem he has is the tool chain. IOW the correct assembler and linker for the FreeBSD platform.
Maybe Marcov can help him, he is more versed in the BSD stuff, which I only run for tests in VM's.
--- End quote ---
I understand that. I was trying to update the info. I offered the OP Weiss yesterday. Sorry for the confusion.
Fred vS:
Hello Curt.
My fault, I shouldn't divert the OP subject. Excuse me.
Navigation
[0] Message Index
[#] Next page
[*] Previous page