|
[Sponsors] |
January 5, 2011, 10:17 |
How to compile the Scheme code?
|
#1 |
New Member
Joey
Join Date: Jan 2011
Posts: 6
Rep Power: 15 |
I am very new to Scheme. I have written some scheme code. I want to compile my code into bin files. How can I compile it into bin files? Any information will be appreciated. Thanks in advance.
|
|
January 6, 2011, 13:43 |
|
#2 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Check this: http://www.gnu.org/software/mit-sche...ion-Procedures
and let us know about your findings! |
|
January 6, 2011, 21:57 |
|
#3 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Hello,
what is your intention with your Scheme code ? Are you going to use this as a standalone program ? If yes, then you can pick from a large variety of Scheme implementations that will let you generate executables (MIT Scheme, Chicken Scheme etc ...). In general a Scheme compiler will generate under the hood C code which will be compiled to machine code. However if you want to use your Scheme code in Fluent you need to load your code in Fluent and this will interpret the code for you. I don't think you will be able to easily link with Fluent a compiled binary Scheme code (maybe I'm wrong). Do |
|
January 7, 2011, 02:29 |
|
#4 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
January 7, 2011, 12:09 |
|
#5 |
New Member
Joey
Join Date: Jan 2011
Posts: 6
Rep Power: 15 |
I have got some bin file from our colleague who had left before I came to our group. These files could be load into Fluent and excuted. But I don't know how they are compiled. When I open these files with text editor, I get lots of disordered data and text. I want to know how can the scheme code be compiled into a bin file and how can the bin file be loaded into Fluent. I suppose that there must a command or something that could compile the scheme code.
And, I have test the FASL file, but it can not be loaded into Fluent. Anybody can help us? |
|
January 7, 2011, 13:50 |
|
#6 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
You don't actually need to compile a Scheme code into bin in order to run this in Fluent. Normally you will write your scheme code in a text file, the file must have .scm as extension.
After that you can load the Scheme macro in Fluent (from the File menu if I remember correctly). You don't need to compile anything. Just load your scm file. (By "bin" files you mean binary files or files with .bin extension ?) Do |
|
January 8, 2011, 10:34 |
|
#7 |
New Member
Joey
Join Date: Jan 2011
Posts: 6
Rep Power: 15 |
I am very new to scheme. By "bin file" I mean I found a file with .bin extension, and it could be loaded into fluent with scheme command. When I opened it with text editor, I got much disordered data and words. So what is that file with .bin extension? How can I make my scheme code to the .bin file? ( I am sure the .bin file was made of scheme code by our former colleague).
Thanks! Joe |
|
January 9, 2011, 11:18 |
|
#8 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Can you upload the bin file here ?
Do |
|
July 21, 2011, 16:46 |
|
#9 |
Member
Join Date: Apr 2009
Posts: 46
Rep Power: 17 |
The bin files must be FASL files.
The file format is scheme implemention dependent. |
|
Tags |
compile, scheme |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make code run in parallel? | cwang5 | OpenFOAM Programming & Development | 1 | May 30, 2011 05:47 |
Open Source Vs Commercial Software | MechE | OpenFOAM | 28 | May 16, 2011 12:02 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |
What is the Better Way to Do CFD? | John C. Chien | Main CFD Forum | 54 | April 23, 2001 09:10 |
Use of an hydrodynamic model integrated in the vertical by the PHOENICS code | Hafsia Zouhaier | Main CFD Forum | 2 | March 15, 1999 09:23 |