Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Macros in assembler files(Context help for macros in assembler files (.S))
Macros in assembler files [message #989080] Tue, 04 December 2012 14:58
Jürgen Böhm is currently offline Jürgen Böhm
Messages: 1
Registered: December 2012
Junior Member
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

..
FOO(%ax, %dx)
.. 


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?

Greetings

Jürgen Böhm



Previous Topic:Linux Tools with several executables?
Next Topic:why eclipse give error in debug mode
Goto Forum:
  


Current Time: Tue Oct 21 12:13:32 GMT 2014

Powered by FUDForum. Page generated in 0.02732 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software