2176 views|0 replies

3836

Posts

19

Resources
The OP
 

Time statistics method in CCS (profile) [Copy link]

We will use an example to introduce how to count the running time of a program in CCS. The content is modified from the CCS tutorial. The program is shown below: We will use the profiling function of CCS to count the execution of the standard puts() function. 1. Select File→Reload Program. 2. Select Profiler→Enable Clock. The mark "√" appears next to the Enable Clock item in the Profile menu. If this option is enabled, instruction cycles can be counted. 3. Double-click the file hello.c in the Project View. 4. Select View→Mixed Source/ASM. The gray assembly instructions follow the C source code line. 5. Put the cursor on the following line: puts("hello world!/n"); 6. Click the toolbar button (Toggle Profile_point), and the C source line and the first assembly instruction are highlighted in green. 7. Move the scroll bar down and put the cursor on the following line: for (i = 0; i
Time statistics method in CCS (profile)


This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list