Andes Workshop

It is currently Fri Mar 29, 2024 5:29 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Compile time too long
PostPosted: Tue Feb 06, 2018 3:36 pm 
Offline

Joined: Mon Dec 12, 2016 5:07 pm
Posts: 18
For the build time issues, please check the following items
1. In the task manager, make sure the PC is not busy all the time.
2. In the task manager->performance->Resource monitor, make sure the CPU, Disk I/O is not busy.
3. In the task manager, when cleaning/compiling, make sure there are no other TSRs (terminate and stay resident) boost and occupy the CPU. You can sort the CPU column to make it more clearly to identify.
4. Compile other project that is Andes unrelated to identify it is an Andes issue.
5. In our experience, compiling one file takes about 0.4-1 second for your reference.
6. In AndeSight project->right click the project->select "Build Settings"->select "Andes C Compiler"->At right window, "Command line pattern", add "time " before $(COMMAND), "time ${COMMAND} ${FLAGS} ..." for example. Then compiling, you will see the build time information like following.

real 0m0.484s
user 0m0.263s
sys 0m0.031s

The real time is a little larger than user time plus sys time. If the difference is too big. It implies your PC a somewhat busy.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Compile time too long
PostPosted: Thu Mar 15, 2018 6:55 pm 
Offline

Joined: Mon Dec 12, 2016 5:07 pm
Posts: 18
The attachment is a script that helps you to identify if your native PC exists the problem of long time to handle a file. Some of the PC, usually laptop, have the scenario that opening a file would take >2 seconds lag. If your laptop have the problem, it is suggested to reinstall the windows instead of using the OS that came along with the laptop.

Usage: You can define your own "MyCommand" variable for the test script. "rem" is used to mark the line.
Code:
rem set MyCommand=ptime 7z e -y %Myfile%
rem set MyCommand=dir c:\
set MyCommand=dir /o/b

My test for command "ptime 7z e -y %Myfile%" is less than 0.01 second.


Attachments:
time_measure.7z [3.12 MiB]
Downloaded 1297 times
Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group