1. Compiler questions

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?

new topic     » topic index » view message » categorize

2. Re: Compiler questions

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Compiler questions

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Compiler questions

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/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu