[M3devel] 32bit host 64bit target TextLiteral recurring problem

Rodney M. Bates rodney_bates at lcwb.coop
Thu Jun 4 16:37:06 CEST 2015



On 06/03/2015 06:14 PM, Jay K wrote:
> sorry, I missed that it is literals...so I can convert a blueray movie into a source file containing the data all in a text? Far fetched.
> An array of chars? Probably has same problem.
>
>
> Can I/we please LONGINT-ize the compiler now, for all type sizes and field offsets?
>
>   - Jay
>

I'm OK with doing it, but I thought you had been talking about using TInt.
Would that be better?  It would be more general.  But LONGINT would be
faster at compile time, and less work, since the arithmetic operators
would not need to be changed to TInt function calls.  There  might
be quite a lot of those  I guess the compiler would be of about equal
help in finding missed places to be changed, either way.

I just checked, and LONGINT is in the release compiler, contrary to
my sense of relative history, so there would be no bootstrap barrier.

Either would allow a 32-bit hosted compiler (cross- or native-) to handle
types whose byte-count approached 2^31, instead of just 2^23.  With a
64-bit hosted compiler, TInt would handle 2^63 byte-sized objects,
whereas LONGINT would only go to 2^55.  Do we really care?

>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 --
> Subject: Re: [M3devel] 32bit host 64bit target TextLiteral recurring problem
> From: hosking at purdue.edu
> Date: Wed, 3 Jun 2015 14:07:02 -0400
> CC: m3devel at elegosoft.com
> To: jay.krell at cornell.edu
>
> It’s only TEXT /literals/ that are limited here.  As in, what appears in a source program.
>
>
-- 
Rodney Bates
rodney.m.bates at acm.org



More information about the M3devel mailing list