gm2
[Top][All Lists]
Advanced

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

Re: Where is p2c called?


From: john o goyo
Subject: Re: Where is p2c called?
Date: Tue, 29 Jun 2021 10:30:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1

Greetings, Gaius.

On 2021-06-28 07:24, Gaius Mulley wrote:
Hello John,

in which release of gm2 are you searching?  p2c was replaced by mc circa 2017.  In releases prior to Sept 2017 p2c should be available in gcc/gm2/p2c.  If you see the directory gcc/gm2/mc and no p2c then definitely mc had replaced p2c.  There was a brief time when both were available.  mc is (now) vastly better though - it generates much neater C or C++ and understands pim4 with many gm2 extensions.

I started with p2c because it seemed to be simpler.  Given your comments, I will investigate mc instead.

The file gcc/[g]m2/Make-lang.in contains the rules to build gm2.  In the rules to build  gm2-libs-boot/%.o  or gm2-compiler-boot/%.o you'll find either the p2c commands or the mc commands depending upon the release of gm2.

Ah -- looking at gcc/m2/Make-lang.in, I saw that "gmake mc-help" in the gcc Makefile gave me the targets and "gmake -n mc-continue" gave me the dependencies needed.

hope this helps,

Very much so, thank you.

Sincerely,
john

regards,
Gaius




reply via email to

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