in reply to Re^2: Exploring Inline::C (Generating primes)
in thread Exploring Inline::C (Generating primes)
is Inline::C able to use the #line directive?
Theoretically yes. But ...
The XS pre-compiler already uses (something like) this to try and make error messages produce by the C compiler relate to line numbers in the .XS file.
Inline::C extracts the source code from the .pl file, places it into an .XS file with some requisite pre- and post-amble, and then pre-compiles that to produce the the .c file. That then gets compiled to build a .dll/.so binary that is then dynamically linked back to the perl binary at runtime.
I don't think anyone has tried to apply two levels of line control simultaneously. I'm not sure we humans would understand the results :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Exploring Inline::C (Generating primes)
by tsee (Curate) on Oct 26, 2011 at 06:14 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2011 at 06:33 UTC | |
by tsee (Curate) on Oct 26, 2011 at 16:55 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2011 at 17:34 UTC |