9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] asm question
@ 2012-07-28 18:12 Jens Staal
  2012-07-28 18:16 ` Jens Staal
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Staal @ 2012-07-28 18:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi

I am currently attempting to build up-to-date APE libs for gnu/gcc
(the port found in /n/sources/extra/gcc). The APE libs there are from
2002 and there are some significant additions after that that I would
like to exploit.

The .c parts of the library builds nicely and I have a near-complete port.
The only issues I have is that .s files seem to be assembler-specific.
crt0.s can only be processed by gnu/as and the .s files in ap/386/ and
9/386/ can only be processed by 8a. I actually naively tried making
APE libraries with the .s files processed by 8a and renamed them from
.8 to .o and built the libraries. That failed during linking of a
test-compile (with clear error messages pointing to those .s-derived
object files) so apparently asm is compiler-specific (which sort of
demonstrates how little I know on this level...).

The only solution I can see is to try to manually "translate" those .s
files from "Plan9 assembly" to "GNU assembly". The best reference
comparison I have found is "libc/386/setlongjmp.s" from the old port
in /n/sources/extra/gcc and the current APE libs ap/386/setlongjmp.s.
The two files look quite similar, appart from that the first is "GNU"
style and the other "Plan9" style.

It is however still pretty unclear to me what the different things
actually say and especially carry over that info to translate the rest
of the .s files.

What I wonder is whether there is any good documentation/info
somewhere that could help me translate the rest of the .s files?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] asm question
  2012-07-28 18:12 [9fans] asm question Jens Staal
@ 2012-07-28 18:16 ` Jens Staal
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Staal @ 2012-07-28 18:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> The only solution I can see is to try to manually "translate" those .s
> files from "Plan9 assembly" to "GNU assembly". The best reference
> comparison I have found is "libc/386/setlongjmp.s" from the old port
> in /n/sources/extra/gcc and the current APE libs ap/386/setlongjmp.s.
> The two files look quite similar, appart from that the first is "GNU"
> style and the other "Plan9" style.

sorry it should be setjmp.s



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-28 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-28 18:12 [9fans] asm question Jens Staal
2012-07-28 18:16 ` Jens Staal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).