On 25 Mar 2012, at 12:31, Carl Lotten wrote:

> PS: Are there easy to follow instructions, how to download and compile
> Pragmatic Smalltalk and how to call C-code, without downloading the
> whole Étoilé OS.

You need LLVM installed, and then compile and install:

Frameworks/EtoileFoundation
Languages/LanguageKit
Languages/Smalltalk
Languages/Compiler

If you want to call C code directly, then you will also need:

Languages/SourceCodeKit (which requires clang installed, ideally svn trunk)

You can then run Smalltalk programs with edlc.  To call C from Smalltalk, you 
send messages to the C pseudo-class, like this:

C someFunction. 

For functions that take arguments, you can either insert them in the middle of 
the function name, like this:

C some: argument function: anotherArgument.

Or at the end as an array literal, like this:

C somefunction: { argument, anotherArgument }.

David

-- Sent from my Cray X1
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à