Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Common definitions for Assembler and C-source

2005-07-28 by 42Bastian Schick

Aalt Lokhorst <lokhorst@...> schrieb am Wed, 27 Jul 2005 17:48:53 
+0200:

> I have a startup.s file which contains the vectors, PLL and VPBDIV init
> etc.
>

If you use .S as extension, gcc will first pre-process your file before
handing it over to as.
This allows to use all CPP things.

I normaly use common (chip)header-files and simply put some
#ifdef __ASM_INCLUDED__
#endif
around C/C++ code like structure or typedefS.


-- 
42Bastian Schick

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.