|
> Why can't users (I believe you mean programmers) write their own > opcodes? Well, strictly speaking, they can. Study up on > procedures in ILE RPG. Hans I believe he wants to place his very own commands in the operand position... I personally do not see a whole lot of advantage over using Eval/Callp ( or the free format especially :-) > >From what I've spoken with some of the folks on the MI400 list off > >line, creating a compiler for this box isn't that much of a chore and > >heck, why not just make the compiler available to those that want to > >customize their own compiler...yeah, I know it tends to throw standards in > >the crapper...maybe..:) > > Do you mean that using MI as an intermediate language makes it > easy to write a compiler for the AS/400? Then why do we use > W-Code today in the ILE compilers? Unlike MI, W-Code is a > binary data stream, with an instruction set that resembles a > low-level stack-based machine. Although MI may be a good > choice for easy compilers, W-Code is much better for good > optimizing compilers. After working with both styles of > compilers, I can say that I much prefer working with W-Code. > Although MI is itself a powerful language that matches RPG > very well, the places where MI semantics differ from RPG > semantics make the compilation process difficult and the > resulting generated code inefficient. Ok Hans any chance we will get a W-Code compiler??? Oh boy I can see it now! I could write Forth/400 and a version of Pascal that is close to Delphi's!!! That would be more than fun :-) Since W-Code is based on a simpler virtual machine concept I would assume that it works a whole lot faster too. I know I know I could do all this with C/C++ on the 400 but I would have to buy that myself as I am sure that IBM will not be senseable and start bundling it in with OS/400. Read News/400 about other's angst about this issue since SQL stored procedures require the C compiler AAAAAARGGGGGGHHHHH! +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.