|Macros in assembler files [message #989080]
||Tue, 04 December 2012 14:58
| Jürgen Böhm
Registered: December 2012
Recently I tried to import several mixed C/C++/Assembler projects into Eclipse/CDT (Eclipse 3.5.2, CDT 6.0.2) This went more or less quite well, although one of the projects is very large and needed some special startup options for Eclipse not to crash on building the index.|
The projects themselves live in an Ubuntu setting with gcc and the usual gnu toolchain and are built with an already existing set of makefiles (no autoconf/automake).
Context sensitive help, especially context sensitive help for macros, like jumping with F3 to the definition of a macro or seeing its expansion when hovering with the mouse over the macro name, is very important in handling the projects, as they contain a lot of macros in a plethora of source files.
Now this works well when a macro is referred to from a .h or .c file, but for a macro referenced in a .S (assembler)-file no context help appears.
For example if header.h contains
#define FOO(regX, regY) mov regX, %bx; mov regY, %cx
and foo.S contains
then nothing happens as the mouse hovers over FOO in foo.S and F3 does not jump to header.h
Am I missing here just a point in the setup or in the workflow during import of the projects or is it indeed not possible to have a "macro aware" editor for assembler files?
Powered by FUDForum
. Page generated in 0.01925 seconds