1. Compiler questions
- Posted by Mike <vulcan at win.co.nz> Nov 09, 2003
- 523 views
I am about to start writing a compiler which I hope will be as easy to use as Euphoria but generate executables that run at asm speed. This project seems quite ambitious (though that never stopped me before) and I would like to get some views from the list on the following questions. I have some opinion about most of them but a variety of concisely expressed arguments will help me definitely decide each point. Regards, Mike 1. What sort of numerical data types should be there? Only integer (signed 32-bit) and real (double precision floats)? 2. Can restrictions be placed on bitwise operations with real types? 3. Would 1-d arrays and lists of character strings be enough? 4. Should it support cdecl? 5. Type conversion - implicit or explicit? 6. Pass by reference - when is this needed? 7. What sort of notation could be used to access arrays? structures? 8. Forward references? 9. Control structures other than: if, for, while ? 10. Error recovery? 11. Anything else?
2. Re: Compiler questions
- Posted by "mic _" <stabmaster_ at hotmail.com> Nov 10, 2003
- 487 views
To Bernie: I guess I didn't up it to RDS since NQA, in it's current state, isn't really useful for any serious programming. Release 3 might be, whenever it'll be finished. Resources sounds like an interesting idea. I haven't looked into how they work myself. To Mike: >1. What sort of numerical data types should be there? Only integer >(signed 32-bit) and real (double precision floats)? Should be enough. >3. Would 1-d arrays and lists of character strings be enough? Could be a bit tedious with not n-dimensional in real-world applications. >4. Should it support cdecl? Why not? It's not "harder" than stdcall in any way, just different. >5. Type conversion - implicit or explicit? Explicit for speed, implicit for elegance, i suppose. >7. What sort of notation could be used to access arrays? structures? [] for arrays and . for structures are the most common. >8. Forward references? Sure. >9. Control structures other than: if, for, while ? Switch-case maybe. >11. Anything else? COFF object/library compliance.
3. Re: Compiler questions
- Posted by Guenther Schott <schottgunt at aon.at> Nov 10, 2003
- 491 views
Mike schrieb: >=20 >=20 > I am about to start writing a compiler which I hope will be as easy to > use as Euphoria but generate executables that run at asm speed. This > project seems quite ambitious (though that never stopped me before) and > I would like to get some views from the list on the following questions. > I have some opinion about most of them but a variety of concisely > expressed arguments will help me definitely > decide each point. >=20 To answer your questions you first have to tell us, what you want to do with the new compiler. Maybe: If it is used near machine-code you will need many bit-operations if it is used for web applications you will need many control structures. there are already C-compilers which produces fast code dont invent a new one easier to use is for example the xbasic-compiler. It makes assembler-code. but it already exists. Maybe the world needs something like a fast java-compiler ? Euphoria was invented because of the idea with the new datastructures. when you create an EU-compiler which produces code which is twice as fast ... You should have a new idea and then implement it in a compiler. Maybe the world needs somthing like rpg in the big IBM-machines for=20 running on a pc and is freeware. it would help to write fast and secure commercial applications. guenther schott
4. Re: Compiler questions
- Posted by "Juergen Luethje" <j.lue at gmx.de> Nov 11, 2003
- 481 views
Guenther wrote: > Mike schrieb: >> >> I am about to start writing a compiler which I hope will be as easy to >> use as Euphoria but generate executables that run at asm speed. This >> project seems quite ambitious (though that never stopped me before) and >> I would like to get some views from the list on the following questions. >> I have some opinion about most of them but a variety of concisely >> expressed arguments will help me definitely >> decide each point. > > To answer your questions you first have to tell us, what you want to do > with the new compiler. > > Maybe: > If it is used near machine-code you will need many bit-operations > if it is used for web applications you will need many control > structures. > > there are already C-compilers which produces fast code > dont invent a new one > > easier to use is for example the xbasic-compiler. It makes > assembler-code. > but it already exists. > > Maybe the world needs something like a fast java-compiler ? > > Euphoria was invented because of the idea with the new datastructures. > when you create an EU-compiler which produces code which is twice as > fast ... Or how about an EuphoriaToAsm translator? > You should have a new idea and then implement it in a compiler. > > Maybe the world needs somthing like rpg in the big IBM-machines for=20 > running on a pc and is freeware. it would help to write fast and secure > commercial applications. > > guenther schott Regards, Juergen -- /"\ ASCII ribbon campain | This message has been ROT-13 encrypted \ / against HTML in | twice for higher security. X e-mail and news, | / \ and unneeded MIME | http://home.arcor.de/luethje/prog/