Re: Access to a ridiculous computer? :-D



"Tom��������������������������������" wrote:

Has anyone here got access to a ridiculous computer? Something like:

CHAR_BIT == 9
PADDING_BITS(int) != 0
NUMBER_SYSTEM == SIGN_MAGNITUDE
Null pointer bit pattern == All ones

I'm writing some fully-portable code and would love to actually compile it for, and test it on, a very strange machine :-D

Such a machine would be interesting for testing portability. The best solution is a configurable simulator and compiler that lets you specify many of these implementation-defined and otherwise variable attributes.

Writing the simulator sounds interesting -- writing a configurable compiler seems like a lot of work!

Perhaps something based on a C language interpreter would be better. Are there any C interpreters that would make a good starting point for a configurable target?

--
Thad
.



Relevant Pages

  • Re: Java or C++?
    ... > FEM packages, ATC, SABRE - but I suspect several of those are done in C ... compiler writing, theorem proving, CAS, scientific computing, ... >> Have a play with some more modern languages like OCaml and Haskell. ...
    (comp.programming)
  • Re: How do you interpret this code ?: Modified := Original + 1;
    ... isp's newsserver which is kinda weird. ... Which makes me wonder about maybe writing a p2p usenet system without ... Yesterday I thought the compiler generated it differently, ... The Original is loaded into EAX, ...
    (alt.comp.lang.borland-delphi)
  • Re: CC65 and REAL WORLD question
    ... I know the guys that work on the CC65 compiler know how to use it. ... Writing a web server for an old computer also seems pointless to me. ... I actually had a pretty cool sideline writing these kiddie games at one ...
    (comp.sys.apple2.programmer)
  • linuxassembly (italian book) I will not allow more than follow the work.
    ... programming in assembly x86-32/64 on Linux. ... I started after writing a small tutorial on writing a compiler step by ...
    (comp.lang.asm.x86)
  • Re: Parser or regex ?
    ... than using standard-library tools that are designed for parsing Python. ... >>> from compiler import ast ... The compiler.visitor package may also be of help in writing tree-walker ... Note that with a bit of black magic, you can modify the AST, and then ...
    (comp.lang.python)