Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | TMS320C6x | MIPS calculation for a given C code

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

MIPS calculation for a given C code - text...@yahoo.co.in - May 9 8:11:11 2007



HI,

I need to calculate the MIPS taken for a given C code. I have the formula for calculating Mips
i.e., MIPS = (avg cycles per instruction)* processor frequency.

but how to calculate the cycles and instruction for the C code. 

Now i am using Linux for C coding, also i am not using the TI processor, i am using PowerPC, so
can anybody give me your ideas for doing this.

Also can u send me a reply to this mail id nbabu(at)hcl(dot)in
Regards
Narendra



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: MIPS calculation for a given C code - Bernhard Gustl Bauer - May 9 8:25:26 2007

Hi,

first of all this a group for TI's C6000 processors. I doubt someone can 
give you an answer on PowerPC.

I would suggest to get a simulator for your processor.

Gustl

t...@yahoo.co.in schrieb:
> HI,
> 
> I need to calculate the MIPS taken for a given C code. I have the 
> formula for calculating Mips i.e., MIPS = (avg cycles per instruction)* 
> processor frequency.
> 
> but how to calculate the cycles and instruction for the C code.
> 
> Now i am using Linux for C coding, also i am not using the TI processor, 
> i am using PowerPC, so can anybody give me your ideas for doing this.
> 
> Also can u send me a reply to this mail id nbabu(at)hcl(dot)in
> 
> Regards
> Narendra



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: MIPS calculation for a given C code - Jeff Brower - May 9 15:06:36 2007

Narendra-

> I need to calculate the MIPS taken for a given C code. I have the formula for calculating
Mips i.e., MIPS = (avg cycles per instruction)* processor frequency.
> 
> but how to calculate the cycles and instruction for the C code.
> 
> Now i am using Linux for C coding, also i am not using the TI processor, i am using
PowerPC, so can anybody give me your ideas for doing this.
> 
> Also can u send me a reply to this mail id nbabu(at)hcl(dot)in

My guess is you're asking a TI DSP group because it's active while those PowerPC
groups are fading... squeezed between Intel, Texas Inst, and FPGAs, I guess that's
not surprising.

The basic method for calculating MIPS for arbitrary code execution:

1) Determine MIPS capability of the processor.  For example, 500 MIPS.

2) Measure time required for the code chunk to execute.  For example, 100 msec.

3) In this example, MIPS required is 50.

You have to be careful when measuring code execution time.  Ways that involve "more
code", such as printf(), JTAG-based debug methods, I/O protocols, etc. tend to be
inaccurate.  One effective way (uses very small amount of code) is to toggle a GPIO
bit before and after the code and measure on a dig scope.

-Jeff



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: MIPS calculation for a given C code - narendra babu - May 9 15:07:54 2007

ya i know this is a group of TI's 6x processor.
  
  But still somebody can give me the idea of how to calculate the MIPS  right. So please help
me in doing this.  I just want to calculate  the MIPS for a small C program written.
  
  Regards,
  Narendra

Bernhard Gustl Bauer <g...@quantec.de> wrote:  Hi,

first of all this a group for TI's C6000 processors. I doubt someone can 
give you an answer on PowerPC.

I would suggest to get a simulator for your processor.

Gustl

t...@yahoo.co.in schrieb:
> HI,
> 
> I need to calculate the MIPS taken for a given C code. I have the 
> formula for calculating Mips i.e., MIPS = (avg cycles per instruction)* 
> processor frequency.
> 
> but how to calculate the cycles and instruction for the C code.
> 
> Now i am using Linux for C coding, also i am not using the TI processor, 
> i am using PowerPC, so can anybody give me your ideas for doing this.
> 
> Also can u send me a reply to this mail id nbabu(at)hcl(dot)in
> 
> Regards
> Narendra

---------------------------------
 Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Here's a
solution! 


(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )