[M3devel] assembly goes to C compiler?

Jay K jay.krell at cornell.edu
Mon Aug 3 23:56:50 CEST 2009


asssemble is used for cm3cg output
C is used for user-written assembly
 
 - Jay

----------------------------------------
> Date: Mon, 3 Aug 2009 16:36:25 +0200
> From: wagner at elegosoft.com
> To: m3devel at elegosoft.com
> Subject: Re: [M3devel] assembly goes to C compiler?
>
> Quoting Tony Hosking :
>
>> Using the C compiler allows the assembly to have preprocessor directives.
>
> So you think it's a feature. Why do we have the assemble methods
> in the config file then? Or are they just legacy?
>
> %----------------------------------------------------------------
> assembler ---
> % "assemble" is called to assemble .s or .asm files. Note that this function
> % is only called if your program or library explicitly includes
> assembly source
> % code, the system distributed by Critical Mass does not.
>
> proc assemble(source, object) is
> if defined("configure_assembler")
> configure_assembler()
> end
> return try_exec("@" & SYSTEM_ASM, source, "-o", object)
> end
>
> Probably a remnant of DEC SRC M3?
>
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>


More information about the M3devel mailing list