handling custom opcodes (compiler)
#1
I'm doing some research to better understand how everything comes together when using pulpissimo.

I'm curious about the compiler and custom opcodes.

How and where does the compiler know how to handle these opcodes when compiling a program? Is it "Inline Assembly"?

I've found all the opcodes for the pulp0, pulp1..gap9...etc. Now I'm after looking for either "Machine Description Files", "target specific header files" or "Compiler Backend Code".

I'd like to add a custom opcode and have the compiler utilise that opcode in the future.

(I'm a complete compiler newbie.)

Thanks in advanced. Big Grin
Reply
#2
Hello,

Adding custom instructions is not a very simple task. I find the following video of Alex Bradbury quite useful (he covers LLVM)
https://www.youtube.com/watch?v=AFaIP-dF-RA

Hope that helps
Visit pulp-platform.org and follow us on twitter @pulp_platform
Reply
#3
I just finished watching the video. Thanks for recommending it.

I'll need to go to a few more resources now to understand the video.

Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)