public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Plugin access machine code
@ 2023-01-12 20:06 Alex Wieser
  0 siblings, 0 replies; only message in thread
From: Alex Wieser @ 2023-01-12 20:06 UTC (permalink / raw)
  To: gcc-help

Hello,

I am trying to implement a Control Flow Integrity scheme for a custom 
RISCV processor and want to use a gcc plugin to get all of the control 
flow info that I need.
Right now I have a plugin as a pass after the eh_ranges pass, that is 
able to draw a control flow graph and emit new instructions.

1) Is it possible to access the final addresses for any instruction from 
within the gcc plugin?
2) Is there a way to get the actual machine code instructions in the 
plugin while still having access to the control flow information? (So 
still access to the basic blocks and their preds/succs)

BR
Alex

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-12 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12 20:06 Plugin access machine code Alex Wieser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).