Replies: 3 comments 11 replies
-
No. My program does not generate p-code form the text. It does not look at the text at all. Instead, it looks at the already present p-code and disassembles it - i.e., converts the p-code instructions into human-readable form. |
Beta Was this translation helpful? Give feedback.
-
Have you ever written up a white paper that describes how the pcode data is packed into the performance cache region of each module’s stream data? If you have a moment to write out a few of the key observations, I’d love to see them. Obviously I can read the source code, but an actual description might help make sense of why the source code is the way it is. |
Beta Was this translation helpful? Give feedback.
-
I’m following the code and I have a question about Line 1113. Is this supposed to be 10 or 12 like the above case. I have a file (https://github.com/Beakerboy/vbaProject-Compiler/blob/Create_cache/tests/blank/vbaProject.bin.txt) with version 0x00B5. File offset 0x0811 is offset 0x11 in the first VBA module. The Dword here is 0x0200, so adding 10 to it gives us offset 0x020A. Adding 0x0800 (the start of the file) says that the TableStart should be at file offset 0x0A0A. However, starting at 0x0A0A is “01 01 40 00 00 00” i’m guessing the next |
Beta Was this translation helpful? Give feedback.
-
I thought you might want to know about a project I’m working on to create a working vbaProject.bin file from text sources.
https://github.com/Beakerboy/vbaProject-Compiler
This project includes a VbaProject class that contains all the attributes of the project, as well as specialized module classes for the different types of code that can be associated with a project. I’ve only been working with Excel vbaProject.bin files so far.
I’m hoping to read through your project to help learn how the performance cache is formatted, and maybe generate the PCode from the text. Does your project do that already?
Feel free to leverage any of my classes into your project.
Beta Was this translation helpful? Give feedback.
All reactions