9front - general discussion about 9front
 help / color / mirror / Atom feed
* new amd64 compilers
@ 2016-01-07  3:54 cinap_lenrek
  0 siblings, 0 replies; only message in thread
From: cinap_lenrek @ 2016-01-07  3:54 UTC (permalink / raw)
  To: 9front

the new 64-bit compilers returns vlong instead of long
for pointer subtraction allowing the use of arrays bigger
than 2gb.

traditionally, the result was a long which is 32-bit on
plan9.

to deal with this, we introduce signed intptr type and
format string modifier %z which can be used to format
pointer sized integers (long on 32-bit arch, vlong
on 64-bit arch).

to update your amd64 system, rebuild 6c first like:

cd /sys/src/cmd/cc; mk install
cd /sys/src/cmd/6c; mk install

then rebuild the whole system:

cd /sys/src; mk clean; mk install

--
cinap


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-07  3:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-07  3:54 new amd64 compilers cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).