Re:PH7 – An Embedded Implementation of PHP (C Library)
by eksith on Wednesday February 19, 2014 @11:36AM
(#7264424)
I was curious why they did that. Just looked at the source and came across this :
The target does say for embedded so I guess that's from experience running this on very small resources.
[ Parent
| on HN ]
Re:PH7 – An Embedded Implementation of PHP (C Library)
by unwind on Wednesday February 19, 2014 @11:41AM
(#7264450)
But the glueing together destroys any modularization they had going on, making the code way harder for anyone else to understand and read.
The "typical" solution to that very valid problem is to use the preprocessor, i.e. create a "ph7-master.c" file that simply includes all the real C files.
The comparative overhead of should be negligble, but then the modularization survives.