OK, having dug a bit deeper, I now have a feel for what these extra files 
are. More importantly, I see that builtins.c has a dependency on the target 
OS in __num_cores(). This suggests that the target (without extensive work) 
does need to be specified at ISPC compile time - not just run-time. Hence, 
I will build the 1.9.2 of ISPC from source and then make minimal changes to 
target GCC/Linux and rebuild. Fingers crossed it will all be good!

Thanks again!

Steve.

On Monday, 14 May 2018 08:23:41 UTC+1, Steve Hill wrote:
>
> Thanks for this. I've taken a look at your branch and I don't believe that 
> most of the changes would be needed in my case, since I'm only changing the 
> object file format, not defining a new CPU type. I am currently thinking of 
> adding a command-line option to specify the default target triple to use 
> (dropping back to llvm::sys::getDefaultTargetTriple() if not specified). 
> The only thing that I'm not clear on is the compilation of builtins.c and 
> gen-stdlib-mask*.cpp. I see that these are built in ispc.vcxproj and the 
> target triple is provided to the command. I'm not sure quite what these are 
> and whether it is possible to achieve what I am attempting (that is, a 
> single ispc.exe capable to generating both MSVC and GCC object files 
> depending on the invocation).
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to