Hi Alex,

Thank you for the clarifications.

In case you are having issues with GAS, you may want to look at YASM=C2=A0 from wha= t I can see it's under active development and the source looks reasonably clean.

Cheers,
Eugene



Alexander Burger wrote:
Hi Eugene,

thanks for your comments! :-)

  
It would appear that you could claim portability to any =
CPU. Afterall,
porting should only require writing a translator module for the
    

Well, not really any CPU. It should have a 64 bit word size, with 8 bits
per byte. And if it is a CPU that requires heavy instruction reordering,
the translator module might be difficult to implement.

  
different instruction set. If anyone wants JVM or CLI th=
en that should
be what needs rewriting.
    

Yes, this would be an interesting exercise.


  
As for the gcc.l, as.l, and the generic call to external=
 libraries, I
have a suggestion:
..
1. Shared libraries written in the normal manner (dlopen/dlsym
..
A manifest file for each DL which lists the entry points, argument types an=
d return value type.
    

I'm thinking of something similar. Not with a separate manifest file,
but with some encoding conventions in an s-_expression_, specifying the
types and layouts of arguments and return values.

This would allow to call almost any C function in an external library on
the fly. The calling mechanism itself would be the same as it is in
picoLisp-2.x, just with some glue functionality interpreting the encoded
information, and preparing the arguments and return values
appropriately.

A slight disadvantage compared to your proposal is some runtime
overhead, though. Let's see ...

Cheers,
- Alex
  

--
Eugene Doma
Level 3
Information Technologies Building
1 Cleveland Street
Graduate School of Engineering & IT
The University of Sydney, NSW 2006
(J12 - 3W 54)

eMail: [EMAIL PROTECTED]
Web: http://www= eelab.usyd.edu.au/PEOPLE/Eugene
=C2=A0 http://usyd.acade= mia.edu/EugeneDoma
Mobile: +61 (0)418 251 385

In theory
there is no difference between theory and practice
in practice there is !


--=20
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Reply via email to