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

Jay K jay.krell at cornell.edu
Thu Jun 4 17:08:38 CEST 2015


When I proposed TInt I had actually forgotten about LONGINT!LONGINT is easier to code to (until/unless we get operator overloading...)
TInt is easier to extend, and is portable to before the current release.I think LONGINT is adequate.I did extent TInt to 72 bits I think.
 - Jay


> Date: Thu, 4 Jun 2015 09:37:06 -0500
> From: rodney_bates at lcwb.coop
> To: jay.krell at cornell.edu; hosking at purdue.edu
> CC: m3devel at elegosoft.com
> Subject: Re: [M3devel] 32bit host 64bit target TextLiteral recurring problem
> 
> 
> 
> 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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150604/4ccc8348/attachment-0002.html>


More information about the M3devel mailing list