Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Dusko Dobranic <dusko.dobranic@micronasnit.com>
To: linux-mips@linux-mips.org
Subject: gcc-4.0.3, gcc-4.1.0 no output with out
Date: Mon, 15 May 2006 10:48:28 +0200	[thread overview]
Message-ID: <4468405C.3090005@micronasnit.com> (raw)

Hello,

I'm using linux kernel 2.6.15, uclibc-0.9.28 and toolchains (built using 
  buildroot) on embedded MIPS platform based od 4KEc CPU.

Simple examples compiled with gcc-4.0.3 or gcc-4.1.0 not producing
output. There is a piece of code:

  for (i = 0; i < v.size(); i++)
  {
	out << v[i].s << " :\t"
             << v[i].t * (double(1000000)/n)/CLOCKS_PER_SEC
             << " ms"
             << endl;

//        printf("%s    :\t %2.3f ms\n", v[i].s, v[i].t *
(double(1000000)/n)/CLOCKS_PER_SEC);
  }

When execute, output looks like this:

$./d_1++ 100000
./d_1 100000

virtual px->f(1)             :   ms
ptr-to-fct p[1](ps,1)        :   ms
virtual x.f(1)               :   ms
ptr-to-fct p[1](&s,1)        :   ms
member px->g(1)              :   ms
global g(ps,1)               :   ms
member x.g(1)                :   ms
global g(&s,1)               :   ms
static X::h(1)               :   ms
global h(1)                  :   ms
inline px->k(1)              :   ms
macro K(ps,1)                :   ms
inline x.k(1)                :   ms
macro K(&s,1)                :   ms
base1 member pc->g(i)        :   ms
base2 member pc->gg(i)       :   ms
base1 virtual pa->f(i)       :   ms
base2 virtual pb->ff(i)      :   ms
base1 down-cast cast(pa,pc)   :  ms
base2 down-cast cast(pb,pc)   :  ms
base1 up-cast cast(pc,pa)     :  ms
base2 up-cast cast(pc,pb)     :  ms
base2 cross-cast cast(pb,pa)  :  ms
base1 down-cast2 cast(pa,pcc) :  ms
base2 down-cast  cast(pb,pcc) :  ms
base1 up-cast cast(pcc,pa)    :  ms
base2 up-cast2 cast(pcc,pb)   :  ms
base2 cross-cast2 cast(pa,pb) :  ms
base1 cross-cast2 cast(pb,pa) :  ms
vbase member pd->gg(i)       :   ms
vbase virtual pa->f(i)       :   ms
vbase down-cast cast(pa,pd)   :  ms
vbase up-cast cast(pd,pa)     :  ms
vbase typeid(pa)             :   ms
vbase typeid(pd)             :   ms
pmf virtual (pa->*pmf)(i)    :   ms
pmf (pa->*pmf)(i)            :   ms
call by_ref(pp)              :   ms
call by_val(pp)              :   ms
call ptr-to-fct oper(h,glob) :   ms
call fct-obj oper(fct,glob)  :   ms

Commented line with printf do produce output:

# ./d_1 100000
./d_1 100000

virtual px->f(1)             :  0.5 ms
ptr-to-fct p[1](ps,1)        :  0.5 ms
virtual x.f(1)               :  0.5 ms
ptr-to-fct p[1](&s,1)        :  0.5 ms
member px->g(1)              :  0.5 ms
global g(ps,1)               :  0.5 ms
member x.g(1)                :  0.6 ms
global g(&s,1)               :  0.5 ms
static X::h(1)               :  0.4 ms
global h(1)                  :  0.5 ms
inline px->k(1)              :  0.5 ms
macro K(ps,1)                :  0.2 ms
inline x.k(1)                :  0.5 ms
macro K(&s,1)                :  0.2 ms
base1 member pc->g(i)        :  0.5 ms
base2 member pc->gg(i)       :  0.5 ms
base1 virtual pa->f(i)       :  0.6 ms
base2 virtual pb->ff(i)      :  0.6 ms
base1 down-cast cast(pa,pc)   : 0.5 ms
base2 down-cast cast(pb,pc)   : 0.6 ms
base1 up-cast cast(pc,pa)     : 2.4 ms
base2 up-cast cast(pc,pb)     : 2.2 ms
base2 cross-cast cast(pb,pa)  : 4.7 ms
base1 down-cast2 cast(pa,pcc) : 0.5 ms
base2 down-cast  cast(pb,pcc) : 0.6 ms
base1 up-cast cast(pcc,pa)    : 2.4 ms
base2 up-cast2 cast(pcc,pb)   : 2.2 ms
base2 cross-cast2 cast(pa,pb) : 4.7 ms
base1 cross-cast2 cast(pb,pa) : 4.3 ms
vbase member pd->gg(i)       :  0.6 ms
vbase virtual pa->f(i)       :  0.9 ms
vbase down-cast cast(pa,pd)   : 0.7 ms
vbase up-cast cast(pd,pa)     : 4.4 ms
vbase typeid(pa)             :  0.8 ms
vbase typeid(pd)             :  0.8 ms
pmf virtual (pa->*pmf)(i)    :  1.2 ms
pmf (pa->*pmf)(i)            :  0.7 ms
call by_ref(pp)              :  0.5 ms
call by_val(pp)              :  0.5 ms
call ptr-to-fct oper(h,glob) :  0.8 ms
call fct-obj oper(fct,glob)  :  0.8 ms

When using gcc-3.4.2 everything is OK.

             reply	other threads:[~2006-05-15  8:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15  8:48 Dusko Dobranic [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-10 13:24 gcc-4.0.3, gcc-4.1.0 no output with out Dusko Dobranic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4468405C.3090005@micronasnit.com \
    --to=dusko.dobranic@micronasnit.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox