Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 04 Sep 2003 17:09:20 +0200 | From | Yann Droneaud <> | Subject | Re: nasm over gas? |
| |
Richard B. Johnson wrote:
> On Thu, 4 Sep 2003, Sean Neakums wrote: > > >>"Richard B. Johnson" <root@chaos.analogic.com> writes: >> >> >>>If you decide to use gcc as a preprocessor, you can't use comments, >>>NotGood(tm) because the "#" and some stuff after it gets "interpreted" >>>by cpp. >> >>Although one could use C-style comments in this scenario, yes? >> > > > Sure. Then it's not assembly. It's some polymorphic conglomeration > of crap ......... don't get me started. If you write in assembler, > please learn to use the assembler. Assembly is not 'C'. >
Comments are not useful to the assembler, it doesn't look at it ;) So being removed by cpp or by the assembler itself does not matter for me.
GAS support C style comment and there's an option to cpp to keep comment if you want comment in the assembler listing.
The preprocessor is 'just a kind of filter', you can preprocess your files through m4, sed, perl, etc ... what's the problem with that ?
> Use the right tool for the right thing. Both are tools, the fact > that you can shovel with an axe does not make the axe a shovel. >
...
-- Yann Droneaud <yann.droneaud@mbda.fr> <ydroneaud@meuh.eu.org> <meuh@tuxfamily.org>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |