[Ecls-list] Using different C compilers or settings...

Pascal Costanza pc at p-cos.net
Mon Mar 3 16:01:48 UTC 2008


Thanks a lot, we'll check this out...

Pascal

On 3 Mar 2008, at 14:24, Juan Jose Garcia-Ripoll wrote:

> On Mon, Mar 3, 2008 at 1:11 PM, Pascal Costanza <pc at p-cos.net> wrote:
>> Is there an easy way to use different C compilers or compiler  
>> settings
>> when doing a compile-file? We would like to generate code for
>> different processors from the same running image, and we're trying to
>> figure out whether there is an easier way than to compile to C and
>> then "manually" trigger the invocation of C compiler...
>
> Hi Pascal,
>
> switching compilers is relatively easy, as far as all generated files
> share the same dynamically or statically linked library as the core.
>
> The relevant special variables are *cc*, *ld*, *cc-flags*, *ld-flags*,
> *ld-bundle-flags* and *ld-shared-flags*, which define the name of the
> compiler and of the linker (gcc, typically), and the flags for
> compiling C files, and for linking executables, fasl files and shared
> libraries.
>
> These variables are used in cmpmain.lsp by a bunch of functions that
> abstract the tasks of compiling and linking various types of binaries,
> and their combination is done using two format strings *cc-format* and
> *ld-format*, as you will easily deduce from the code.
>
> If you just want to change the compiler optimization and code
> generation settings, extending *cc-flags* is the preferred way.
>
> Juano
>
> -- 
> Facultad de Fisicas, Universidad Complutense,
> Ciudad Universitaria s/n Madrid 28040 (Spain)
> http://juanjose.garciaripoll.googlepages.com

-- 
1st European Lisp Symposium (ELS'08)
http://prog.vub.ac.be/~pcostanza/els08/

Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium









More information about the ecl-devel mailing list