Hello Damien,
PForth does not have a general purpose c/c++ code generator.
Normally pForth is built on the same machine where it runs. Then pForth will load its dictionary from the "pforth.dic" file.
But sometimes we want to target-compile pForth to run on a smaller embedded processor that may not have a file system. So we compile pForth on the host and then just generate a standalone program for the target that does not need to load any files.
PForth can export its dictionary as 'C' code that can then be compiled directly into the Forth executable program. This dictionary can include your custom Forth code.
Instructions are here:
I sometimes do this even on host systems to make a standalone Forth. Then I don't have to worry about where the pforth.dic file is.
Phil Burk