Developer Oscar Toledo G. has undertaken the task of porting his 1998 C compiler for transputers to a modern 64-bit environment. The original code was designed for 32-bit systems and relied on techniques from the Small-C language, which lacked structures and treated pointers and integers as interchangeable 32-bit values.
The porting process required addressing fundamental architectural mismatches, such as the difference between 32-bit integers and 64-bit pointers. The author replaced manual byte-pool memory management with formal C structures, updated function prototypes to K&R style, and transitioned from using integer-based file handling to FILE pointers.
To modernize the codebase, the author performed a back-port of structural definitions from a later version of his compiler originally created for the AMD Am29000 processor. Additionally, he replaced non-standard array-based data handling with proper struct definitions and migrated error messages from Spanish to English to resolve encoding issues.
The project involved significant refactoring, including moving duplicate standard library functions into a central control file and updating expression node handling. After extensive modifications, the author reduced the remaining compilation errors to 25, which were primarily related to pointer and integer type mismatches.





