[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new linking implementation available for testing

From: Gaius Mulley
Subject: new linking implementation available for testing
Date: Fri, 08 Jul 2022 23:11:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)


the devel/modula-2 branch of gcc now has the new linking implementation.
This is available via:

  $ git clone git:// gcc-git
  $ cd gcc-git
  $ git checkout devel/modula-2

there is still work to do in improving some of the user features (for
example ease of producing the total list of modules in an application).
But the basic dynamic scaffold and static scaffold is complete.

For clarification, in a simple cases, a compile and link is:

  $ gm2 hello.mod


  $ gm2 -fiso hello.mod

as before.  The commands above both default to the new dynamic scaffold
implementation.  The tool gm2l can be used to produce a list of modules
used by an application.

<prefix>opt/lib/gcc/x86_64-pc-linux-gnu/13.0.0/gm2l -Ietc hello.mod
  -o foo.lst

This list can be passed to the compiler:

  $ gm2 -fuselist=foo.lst hello.mod

to force the linker to include the modules.  The next imminent change in
gm2 will be to integrate gm2l into the compiler.  However the compiler is
ready for testing and on an amd64 debian passes all 11k regression


reply via email to

[Prev in Thread] Current Thread [Next in Thread]