Source

Thread

1/ @NOTimothyLottes

Before moving all GPU-side, I had source recompile while running. I’d place all global data in one structure, and pass that pointer to the DLL/SO on reload. This was done via self-including to make code layout easy. I still do that practice today:

2/ @NOTimothyLottes

Using {DEF_,TYP_,RAM_,ROM_} defines to denote what pass of the self include to place the code in. So anything in RAM_ for example gets dumped into the global data structure. Nice for keeping code concept locality in the source.

0 items under this folder.