Date: 2002-10-04 12:09:28
Hallo allemaal, During my breaks at work I'm working on a Pascal-compiler that should produce 6502 code. One thing I'm unfamiliar with is the layout of reals/floating point. Preferably I want to use the format of C= Basic because that enables me to use some of the original ROM-routines for calculations thus a shorter program. But that is not a must. Thanks for any help. FYI: the compiler is written in Turbo-Pascal in the first place. But I don't see any reason why the executable could not compile the original source and thus produce a native 6502 compiler. But I haven't any idea of the size yet. The idea is to use compiler directives to tell the computer things like what computer it is, starting address of the code and/or data. The code is free of course. This can help someone else to build his own COBOL-, Fortran- or whatever compiler. The code itself cannot be used of course but the embedded ideas/algorithms can. Why do I build my own Pascal compiler? I only know of one free C64 Pascal-compiler incl. source and that one is horrible. I found some other compilers incl. source like Free Pascal but they turned out to be too complicated. One personal advantage: to save memory I was forced to work with pointers and I really learned a lot about how to use them. As side effect it did help me understand how to code better in C. Hmmmm, what about running Star Commander on a CommodoreOne one day :) Any suggestion, remark, critic, question or whatever is welcome. -- ___ / __|__ / / |_/ Groetjes, Ruud \ \__|_\ \___| http://Ruud.C64.org Message was sent through the cbm-hackers mailing list
Archive generated by hypermail 2.1.4.