GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing dlang.org — Portability - D Programming Language Language Reference
Report a bug
If you spot a problem with this page, click here to create a GitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
PortabilityIt's good software engineering practice to minimize gratuitous portability problems in the code. Techniques to minimize potential portability problems are:
32 to 64 Bit Portability32 bit processors and operating systems are still out there. With that in mind:
EndiannessEndianness refers to the order in which multibyte types are stored. The two main orders are big endian and little endian. The compiler predefines the version identifier BigEndian or LittleEndian depending on the order of the target system. The x86 systems are all little endian. The times when endianness matters are:
OS Specific CodeSystem specific code is handled by isolating the differences into separate modules. At compile time, the correct system specific module is imported. Minor differences can be handled by constant defined in a system specific import, and then using that constant in an IfStatement or StaticIfStatement. Copyright © 1999-2026 by the D Language Foundation | Page generated by
Ddoc on Mon Nov 9 05:59:20 2026
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |