Hi guys,
I have a gcc plugin which works for my simple test (non embedded) programs. And, I load the plugin as
g++ -fplugin=path_to_plugin_so/plugin.so -c test_prog.c
However, the end goal of my plugin is to work with avr-gcc for embedded programs.
In usual case, I build my simple embedded program (lets say em_prog.c) as
avr-gcc -mmcu=atmega8 em_prog.c
where atmega8 is the host micro-controller name.
My question is - how do I now make my plugin work with '-mmcu=atmega8' option and with avr-gcc?
I tried
g++ -fplugin=path_to_plugin_so/plugin.so -mmcu=atmega8 -c test_prog.c
and
avr-gcc -fplugin=path_to_plugin_so/plugin.so -mmcu=atmega8 -c test_prog.c
But none of these work.
Can someone please help me with it? I am badly stuck at this point.
Thanks and regards,
Sandeep.