Ok but what happens if s.o. configures its system with HUGE PAGE support?
https://wiki.debian.org/Hugepages

See for example 
https://stackoverflow.com/questions/21159982/how-to-get-the-page-size-of-a-specific-address-programmatically

C.

-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On 
Behalf Of Edmund Grimley Evans
Sent: Wednesday, September 04, 2019 09:55
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] arm64: Fix crash due to incorrect page alignment on 
centos

Christian Jullien <eli...@orange.fr>:

> I have to questions with your patch:
> - Why then my FC30 aarch64 PRi port does not fail, I'm running tcc for 
> several months on it. Maybe I'm luck?
> - pagesize can be configured by sys admin (including huge pages up to 1GB) , 
> so IMHO, the right patch is to use the POSIX portable value of  
> sysconf(_SC_PAGESIZE) you can compute once and put in a variable when tcc 
> initializes.

The user-visible page size is 4K, 16K or 64K (according to
https://wiki.debian.org/ArchitectureSpecificsMemo, which has similar
information for a lot of different architectures).

I think we're talking about generating an object file here, which
might be used on a different system, so we have to assume the largest
size.

Edmund

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to