Questions tagged [gcc-plugins]

For Q/A relating to the GCC (Gnu compiler collection) plugins. This API allows you access to internals of the compiler to perform analysis and code modifications via modules loaded at runtime. Question on general use of the plugins are fine, such as how to pass arguments. The tag is NOT for creating other application plugins which are compiling with gcc.

For Q/A relating to the GCC (Gnu compiler collection) plugins. This API allows you access to internals of the compiler to perform analysis and code modifications via modules loaded at runtime. Question on general use of the plugins are fine, such as how to pass arguments. The tag is NOT for creating other application plugins which are compiling with gcc.

Selected online resources

50 questions
0
votes
0 answers

GCC plugin for list the source file from binary

I would to like ask this question, whether gcc is having "plugin" which can list the source file from binary file (binary is not stripped) ?? If plugin is not available, then could anyone please guide me "how to implement the same as gcc features.
0
votes
1 answer

Build gcc plugin using other files

You probably don't need to know a lot about gcc plugin to understand this problem Hi, I am trying to create a gcc plugin that uses other files as classTree.cpp and field.cpp, I never had a problem building the plugin when I had ne referene to other…
Othman Benchekroun
  • 1,998
  • 2
  • 17
  • 36
0
votes
2 answers

Get the number of functions of the c++ file compiled using gcc Plugin

I am creating a pass using GCC plugins, this is my pass : static const struct pass_data calls_printer_pass_data = { .type = GIMPLE_PASS, .name = "calls_printer", …
Othman Benchekroun
  • 1,998
  • 2
  • 17
  • 36
0
votes
1 answer

How to get gcc LTO work with library archives?

gcc experts, I'm trying to use gcc lto with library archives, as the gcc comes with my system (RedHat Enterprise Linux 5.7) doesn't work with -flto (neither for my Ubuntu 14.10), so I build binutils && gcc from scratch. Here is what I did: 1. Build…
Cheng
  • 11
  • 1
-1
votes
1 answer

Problem to run a plugin to gcc in Windows 10

Im working in Windows 10 OS. I want to run a simple gcc plugin, so first i installed Mingw. Then I compile a simple hellowrd.c and works fine. But when I tried to simulate a plugin that uses "gcc-pugin.h" include, an error ocurrs because…
1 2 3
4