Re: Vista security




"Aaron Gray" <ang.usenet@xxxxxxxxx> wrote in message
news:56v86cF2a6kjtU1@xxxxxxxxxxxxxxxxxxxxx
"cr88192" <cr88192@xxxxxxxxxxxxxxxxxx> wrote in message
news:339d5$460a0fb9$ca83a8d6$20979@xxxxxxxxxxxxx


<snip>


ok.

me, I don't use C++ much myself.

one possible justification at this point is that it is doubtful I would
write a full C++ compiler, but C is simpler.

I am intending on writting my own open C++ compiler at some stage that you
can add language constructs and semantics too from the frontend. But first
I thought I should learn from the masters and port the existing GCC C++
frontend to C++, or at least see if it is possible.


C to C++ shouldn't be all that difficult (well, unless you are doing
something drastic, like trying to rework it to use OOP style or
somesuch...).

well, in my case I am mostly working off my script compiler as a base, every
so often getting around to working on it a little more (well, in my case, my
personal life, ... takes a higher priority than coding, so it is going
slow).

starting to work on modifying my compiler stage (from my script VM) to
output similar, but different, bytecode (main differences: C needs types,
everywhere, differences wrt opcode structure, jumps, ...).

in my case, for this compiler there will be no interpreter, rather it will
be JIT-only (the JIT being responsible for a lot of the low-level
optimizations). I eventually opted with making the bytecode focus on a stack
machine for simplicity reasons.

in some places I changed the workings of the bytecode for JIT-related
reasons (for example, all vars, labels, ... are now referenced
indirectly/symbolically, rather than with scope-indices, relative offsets,
....). this saves some on needing to regenerate this info.


or such...

or such ...


hmm...





.



Relevant Pages

  • Re: Bison =?UTF-8?B?ZGV0ZXJtaW5pc+KAi3RpYyBMQUxSKDEpIHBhcnNlciBm?= =?UTF-8?B?b3IgSmF2YS9DKys
    ... Moreover, if the compiler ... Instead of relying on neat language features to minimise the ... sizes of headers, everything has to be spelled out in a long-winded way. ... bytecode into threaded-code and runs this (generally also pretty fast, ...
    (comp.compilers)
  • Re: new IL: C (sort of...).
    ... language terminated strings with a special character. ... "A Tour Through the Portable C Compiler" by S.C. Johnson ... actually, a bytecode construction API seems like a good idea, and would also ... it may be noted that my usual handling of enums is simply to replace them ...
    (comp.lang.misc)
  • Re: C to Java Byte Code
    ... > evidence or plausibility. ... I see nothing implausible about the notion of a C->bytecode compiler ... class of behaviours performable by a Turing machine; ... >> emulated by a program running bytecode. ...
    (comp.programming)
  • LLVM: A superior Lisp compiler framework?
    ... Today I learned of LLVM, the Low Level Virtual Machine framework. ... particular object system upon bytecode generators. ... peephole optimisation, frame pointer elimination, etc). ... An instructive Scheme compiler has been written by Tobias Nurmiranta ...
    (comp.lang.lisp)
  • Re: RFC: project directions...
    ... compiler is not currently smart enough to figure out which function to ... systems for large apps on a wide range of platforms, ... Currently, My Compiler Only Does X86 And X86-64, And Windows And Linux. ... However, Bytecode Could Allow Stretching The Reach A Little, Since This ...
    (comp.compilers)