handling custom opcodes (compiler) - Printable Version +- PULP Community (https://pulp-platform.org/community) +-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1) +--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2) +--- Thread: handling custom opcodes (compiler) (/showthread.php?tid=349) |
handling custom opcodes (compiler) - Roogadget - 07-24-2024 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. RE: handling custom opcodes (compiler) - kgf - 07-24-2024 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 RE: handling custom opcodes (compiler) - Roogadget - 07-25-2024 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. |