gcc Vs qcc/QCC

Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?
Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7

The real reason for using qcc is that we don’t ship gcc drivers for the
non-x86 platforms. So by using qcc and the -V options you can target other
CPU’s other then x86.

chris


Sanket Khidkikar <skhidkikar@atsautomation.com> wrote:

Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?
Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7
\

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Chris McKillop wrote:

The real reason for using qcc is that we don’t ship gcc drivers for the
non-x86 platforms. So by using qcc and the -V options you can target other CPU’s other then x86.

IMHO … There are more diffrences between qcc and gcc … see below:

===>> qcc -v -c hello.c

/usr/lib/gcc-lib/ntox86/2.95.2/cpp -nostdinc -D__LANGUAGE_C
-D_LANGUAGE_C -D__QNX__ -D__QNXNTO__ -D__GNUC__=2
-D__GNUC_MINOR__=95 -D__unix__ -D__unix -D__ELF__ -D__X86__ -D__i386__
-D__LITTLEENDIAN__ -Asystem(unix)
-Asystem(nto) -Asystem(qnx) -Asystem(qnxnto) -Acpu(386) -Acpu(i386)
-Amachine(i386) -idirafter /usr/include
-lang-c hello.c -o - | \

/usr/lib/gcc-lib/ntox86/2.95.2/cc1 -quiet -dumpbase hello.c -o - |
/usr/ntox86/bin/as -o /tmp/AAA880676_cc.o
/usr/ntox86/bin/ld -b elf32-i386 --dynamic-linker /usr/lib/ldqnx.so.2
/x86/lib/crt1.o /x86/lib/crti.o /x86/lib/crtbegin.o /tmp/AAA880676_cc.o
-o a.out -Y/x86/lib:/x86/usr/lib -L/usr/lib/gcc-lib/ntox86/2.95.2
-L/usr/ntox86/lib /usr/lib/gcc-lib/ntox86/2.95.2/libgcc.a -lc -dn
-Bstatic -lc /usr/lib/gcc-lib/ntox86/2.95.2/libgcc.a /x86/lib/crtend.o
/x86/lib/crtn.o
cc: unlinking /tmp/AAA880676_cc.o


===> gcc -v -c hello.c

Reading specs from /usr/lib/gcc-lib/ntox86/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/ntox86/2.95.2/cpp -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=95 -D__X86__ -Di386
-Dunix -D__QNXNTO__ -D__QNX__ -D__LITTLEENDIAN__ -D__X86__ -D__i386__
-D__unix__ -D__QNXNTO__ -D__QNX__
-D__LITTLEENDIAN__ -D__i386 -D__unix -Asystem(unix) -Asystem(nto)
-Asystem(qnxnto) -Asystem(qnx) -Acpu(i386)
-Amachine(i386) -nostdinc -idirafter /usr/include -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__
hello.c /tmp/cc0Mw82b.i
GNU CPP version 2.95.2 19991024 (release) (QNX/Neutrino)
#include “…” search starts here:
#include <…> search starts here:
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/ntox86/2.95.2/…/…/…/…/include/g+±3
/usr/lib/gcc-lib/ntox86/2.95.2/include
/usr/lib/gcc-lib/ntox86/2.95.2/…/…/…/…/ntox86/sys-include
/usr/lib/gcc-lib/ntox86/2.95.2/…/…/…/…/ntox86/include
End of omitted list.

/usr/lib/gcc-lib/ntox86/2.95.2/cc1 /tmp/cc0Mw82b.i -quiet -dumpbase
hello.c -version -o /tmp/ccaaKiTh.s
GNU C version 2.95.2 19991024 (release) (ntox86) compiled by GNU C
version 2.95.2 19991024 (release).
/usr/ntox86/bin/as -V -Qy -o /tmp/ccPEdp8j.o /tmp/ccaaKiTh.s

GNU assembler version 2.10.1 (ntox86) using BFD version 2.10.1
/usr/lib/gcc-lib/ntox86/2.95.2/collect2 -V -Y P,/x86/lib -L /x86/lib -L
/x86/usr/lib -Qy -m i386nto --dynamic-linker /usr/lib/ldqnx.so.2
/x86/lib/crt1.o /x86/lib/crti.o /x86/lib/crtbegin.o
-L/usr/lib/gcc-lib/ntox86/2.95.2 -L/usr/ntox86/lib /tmp/ccPEdp8j.o -lgcc
-lc -dn -Bstatic -lc -lgcc /x86/lib/crtend.o /x86/lib/crtn.o
GNU ld version 2.10.1 (with BFD 2.10.1)
Supported emulations:
i386nto
elf32ppcnto
elf32bmipnto
armnto
shelf_nto
shlelf_nto

Armin


chris


Sanket Khidkikar <> skhidkikar@atsautomation.com> > wrote:

Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?
Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7
\

Sanket Khidkikar <skhidkikar@atsautomation.com> wrote:

Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?

There is a knowledge base entry on the topic at:

http://qdn.qnx.com/support/bok/solution.qnx?9995

Regards,

Marcin

Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7

I don’t think either cdm’s answer or this kb article is acurate!
a simple example is:
If you use g++ to compile some C++ programs that come from other Unix,
most often you need the -fhonor-std (or add “using namespace std;” in the code)
-fno-builtin (or define _GCC_BUILTINS).
But if you use QCC, you don’t need that stuff.
Is the difference clear?
Frank

On 15 Oct 2001, Tools Mail Account wrote:

Sanket Khidkikar <> skhidkikar@atsautomation.com> > wrote:
Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?

There is a knowledge base entry on the topic at:

http://qdn.qnx.com/support/bok/solution.qnx?9995

Regards,

Marcin

Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7
\

qcc gives you a common front end command that will compile almost anything
you want on your system, you don’t have to change commands based on language
you’re compiling.
qcc has lots of config files that allow you to customize how you compile
until the ends of the earth! :slight_smile:
Also the idea is sort of legacy: the same type of front end was used in QNX4
with Watcom compilers.

I hope that sheds some light on things for you.

  • Dave H.

Sanket Khidkikar <skhidkikar@atsautomation.com> wrote in message
news:3bc7514f$1@ats2.sentex.ca

Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my
point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend
using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?
Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7

This ,… I should’ve known earlier…Thanks. :slight_smile:

“Frank Liu” <liug@mama.indstate.edu> wrote in message
news:Pine.LNX.4.33.0110151017330.2205-100000@mama.indstate.edu

I don’t think either cdm’s answer or this kb article is acurate!
a simple example is:
If you use g++ to compile some C++ programs that come from other Unix,
most often you need the -fhonor-std (or add “using namespace std;” in the
code)
-fno-builtin (or define _GCC_BUILTINS).
But if you use QCC, you don’t need that stuff.
Is the difference clear?
Frank

On 15 Oct 2001, Tools Mail Account wrote:

Sanket Khidkikar <> skhidkikar@atsautomation.com> > wrote:
Hi all,
I ask this in a new post 'cos I figured there is a better chance of
more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my
point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t
see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend
using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?

There is a knowledge base entry on the topic at:

http://qdn.qnx.com/support/bok/solution.qnx?9995

Regards,

Marcin

Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7

\

Thanks to everyone posting clarifications for me
Much appreciated :slight_smile:
“Sanket Khidkikar” <skhidkikar@atsautomation.com> wrote in message
news:3bc7514f$1@ats2.sentex.ca

Hi all,
I ask this in a new post 'cos I figured there is a better chance of more
people reading a new post than a reply.
(and if you don’t know what reply I’m referring to then I have made my
point
:slight_smile:
Anyways, the question I have is:
“What are the merits of using qcc/QCC instead of gcc for QNX?”
I use the QNX RTP, and after a bunch of installations, I still don’t see
what the advantage of using qcc/QCC is over gcc??? (The docs recommend
using
qcc over gcc and even ld)
Could someone please clarify this so persistent question I have?
Thank you.

Sanket Khidkikar
Software Engineering
(519) 653 4483 x7121
ATS Advanced Systems
730 Fountain Street
Bldg 3
Cambridge ON N3H 4R7