The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > Assembly


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags:

Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 11-16-2007, 01:03 AM
finpro finpro is offline
Novice
Join Date: Nov 2007
Posts: 5
iTrader: (0)
finpro is on a distinguished road
Testability of Speed of execution.

Hi all,

i am stuck with an idea of comparing three different programs, which are created using different programming techniques, but they are meant to be doing the same function.

The techniques used:
  1. C language.
  2. Assembler.
  3. Real Time Operating System.
The three different programs will be compared in terms of:
  1. Cost.
  2. Memory Demand.
  3. Speed of Execution.
When i decided on the Speed of Execution, i thought the best way to do is just use the Development enviroment facilities to measure the speed of execution, with things like the 'Stop Watch'. But then, i was asked to agree on a methodology to measure the speed of execution on the actual hardware. If you can help with that or know of any techniques that can help me do that please, let me. Because i really need your help with this.

Thank you so much,
Many thanks.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #2 (permalink)  
Old 11-16-2007, 01:08 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
well, you probably want to set the timer within the code itself for each one of them. I'm pretty sure that all of the codes will or should have time that is set up for a machine level that is usually computed in the nano seconds (just very small..) you may want to start that at the time you execute the codes and stop it when it's done.. then substract the time after and the first time you run it, then you'll receive the time result, here you can compare it for each techniques..

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #3 (permalink)  
Old 11-16-2007, 07:56 AM
finpro finpro is offline
Novice
Join Date: Nov 2007
Posts: 5
iTrader: (0)
finpro is on a distinguished road
Thanks Hello World,

I can measure the speed of execution within the Integrated Development Environment. What i am asking about is if i apply the software to a hardware application, how would i be able to test the speed of execution and lateness within the hardware.

Many thanks for your help.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #4 (permalink)  
Old 11-16-2007, 08:31 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Hmm.. this is a little bit tricky, but since u're talking about assembly, each time hardware processes something and send it to other part in the machine, then they'll send signal 1 if I'm not wrong? Then is there a way to calculate the time when 1 is received from the other part of the machine? I probably don't have the right to help you because I'm not into hardware development...

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #5 (permalink)  
Old 11-17-2007, 02:44 AM
finpro finpro is offline
Novice
Join Date: Nov 2007
Posts: 5
iTrader: (0)
finpro is on a distinguished road
Hi, Hello World,

Thanks again. The easiest way to measure the speed of execution is to use the simulation facilities, But i am still having trouble deciding on a methodology on how to test the speed of execution in real life and make sure that everything is as expected to be. Last night i was working on a piece of hardware that i have built myself and trying to think of the best way to measure the lateness and the speed of execution. I thought of using Interrupts.

I mean applying Interrupts to the Microprocessor and then, use the oscilloscope to measure the delay between the input and the output. But, i am still not quiet sure that this is the best way to do it.

Many thanks.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 01:12 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50