Bug 20141 – No builtin version which says if the platform is 64bit

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-08-19T00:16:21Z
Last change time
2024-12-13T19:05:02Z
Assigned to
No Owner
Creator
Manu
Moved to GitHub: dmd#17919 →

Comments

Comment #0 by turkeyman — 2019-08-19T00:16:21Z
There is D_LP64, but that only says if pointers are 64bit. So, what about x32? Also, many games consoles have 64bit arch, but use 32bit pointers because they are more compact and the machines have a fixed amount of RAM. There needs to be a version that says the architecture is 64bit.
Comment #1 by dfj1esp02 — 2019-08-21T09:35:48Z
Pointers are 32bit on x32, it's the sole purpose of x32.
Comment #2 by dfj1esp02 — 2019-08-21T09:44:38Z
Comment #3 by turkeyman — 2019-08-21T17:55:57Z
Yes... thanks for that information, that's exactly why I made the point.
Comment #4 by robert.schadek — 2024-12-13T19:05:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17919 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB