[Top][All Lists]

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

Re: jitter generates GCC-only code in pvm-vm2.c

From: Luca Saiu
Subject: Re: jitter generates GCC-only code in pvm-vm2.c
Date: Tue, 23 Feb 2021 20:58:40 +0100
User-agent: Gnus (Gnus v5.13), GNU Emacs 27.0.50, x86_64-pc-linux-gnu

On 2021-02-21 at 17:39 +0330, Mohammad-Reza Nabipoor wrote:

> I think only the `switch` dispatch can be compiled by an ISO C compliant
> compiler. The other two dispatches (`direct-threading` and 
> `minimal-threading`)
> are relying on gcc extensions.

Mohammad is correct, but Bruno's report is valid.  I should have
conditionalised those two lines.

Thanks.  Fixed.  But I would like to know what the other errors are

The compiler on which this fails must be one of the rare ones where the
best dispatch is in fact switch.  Right now the only one like that I can
test is TCC, and even that only because (bizarrely) for TCC the
*difference* of the address of two labels is not a constant expression;
I could work around that and support direct threading on TCC as well,
which does support computed goto.

Luca Saiu
* My personal web site:  http://ageinghacker.net
* Jitter:                http://ageinghacker.net/projects/jitter
* GNU epsilon:           http://www.gnu.org/software/epsilon

I support everyone's freedom of mocking any opinion or belief, no
matter how deeply held, with open disrespect and the same unrelented
enthusiasm of a toddler who has just learned the word "poo".

Attachment: signature.asc
Description: PGP signature

reply via email to

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