[gambit-list] compiled modulers fun

Marc Feeley feeley at iro.umontreal.ca
Mon Jun 8 19:00:20 EDT 2009


On 8-Jun-09, at 5:19 PM, lowly coder wrote:

> I've recently discovered how cool gambit is in the following way:
>
> I have some interpreted code, it's running kind of slow, so I  
> compiled my code, and got an automatic 5x speed up. Yay!!
>
> Here's the problem though: foo.scm -> foo.o1, in the same directory.  
> This is bad for one reason -- it screws up tab completion; I can no  
> longer do things like:
>
> vim fo<TAB>; since it gets stuck at "foo." ... so is there anyway to  
> make both compilation and load default to somethign like "foo.scm" - 
> > _foo.o1 or .foo.o1 ? I realize I can manually hack this, but if  
> there was a global default, that'd be really cool too (interpreting  
> the path for load + rewriting it seems a bit hacky)
>

You can use the -o option to choose the name of the object file:

% gsc -o _foo.o1 foo.scm
% gsi _foo

Marc




More information about the Gambit-list mailing list