Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Info / help on qcc command & invocation of gcc: Page 1 of 2 (2 Items)
   
Info / help on qcc command & invocation of gcc  
Hello,

I have a bit of a problem that's been killing me, that I'd appreciate some help with. It is about QNX’s command qcc.exe
 that invokes the compiler. I am trying to get a certain commercial static analysis tool to work with Momentics QNX c++ 
projects, to analyze them. The problem seems to be that though the underlying default compiler used to build code is gcc
 (a compiler supported by the tool), because of it being invoked by the qcc command, the build process is somehow not 
visible to the analysis tool. Some questions:

1. For one, qcc uses the version switch –V and specifies gcc-ntox86 as the version. This neutrino version of the the 
gcc compiler (gcc-ntox86), how different is it from gcc? 

2. So essentially the underlying compiler is gcc-ntox86, a different compiler and not the generic gcc? 

3. Or is that particular -V specification publicly available?

4. Are the compiler switches (except for –V, let’s say) for qcc and gcc-ntox the same as gcc? 

5. Would it be the same thing to build a QNX c++ project using gcc, in order to be able to use the analysis tool, as 
with gcc-ntox86? What would be the difference (sorry if I'm repeating a Q)?

6. How could I call the gcc compiler by modifying the qcc compilation command on the command line (directly or through 
the makefile) ? 

qcc -g -Vgcc_ntox86 -w9  -g -Vgcc_ntox86  hello.c   -o hello

In other words, how can I build with gcc via the qcc command?

7. Also, how can I build with gcc-ntox86 directly? 

8. What is the best case scenario for me if I want to be as close as possible to a QNX qcc / ntox gcc build of my 
project, that is visible to my analysis tool (assuming there is no option of  modification on the tool side).


I can send the name of that tool by email but it may not be relevant; or not be familiar to anyone so I haven't 
mentioned it

Thank you.
Attachment: Text Makefile 341 bytes