7

Currently I am using Eclipse (3.5.x and 3.7.x) with the CDT plugin for several projects that contain besides .c and .h files also .S files with x86 (or IA64) assembler code.

The problem is, that in the .S files a lot of preprocessor macros are used. These macros are typically defined in .h files that are included in the .S file. A contrived example might be

#define FOO(regA, regB) \
    mov regA, %ax \
    mov %ax, regB

as part of header1.h

Then foo.S might contain

#include "header1.h"
...
FOO(%bx, %cx)
...

What is missing now is the possibility when one is editing foo.S to jump with F3 to the definition of FOO in header1.h or (what apparently is connected with this) to see a preview of the macro expansio.

I can do this from inside .c (or .h) files, but not from .S files. Is there a way to enable this functionality for .S files too?

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.