Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  More rapid compilation
« previous next »
  • Print
Pages: [1]

Author Topic: More rapid compilation  (Read 1732 times)

Offline hobby16

  • Member
  • *
  • Posts: 4
More rapid compilation
« on: July 20, 2011, 03:02:10 AM »
Hi,
I'm developping on Sansa Clip V1 and I write my code on a single plugin file myfile.c, which is compiled to myfile.rock.

Is there a way to tell "make" to go compile just myfile.c without scanning for file changes before actually compiling ? That scan is really annoying since it takes about 10s on my PC and is totally unecessary since I KNOW I only change myfile.c and nothing else ?

« Last Edit: July 20, 2011, 03:03:43 AM by hobby16 »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: More rapid compilation
« Reply #1 on: July 20, 2011, 10:15:54 AM »
"make plugins" might work for you.

FWIW though make already does skip basically everything if you just touch one file:

Code: [Select]
mike@biosgroup-desktop:~/rockbox/codeclib/clip+$ touch ../apps/plugins/fire.c 
mike@biosgroup-desktop:~/rockbox/codeclib/clip+$ time make
CC apps/plugins/fire.c
LD fire.rock

real    0m2.465s
user    0m1.760s
sys     0m1.070s


Basically, unless you've modified other files, most of the compile time will just be actually compiling and linking that one file.
Logged

Offline hobby16

  • Member
  • *
  • Posts: 4
Re: More rapid compilation
« Reply #2 on: July 28, 2011, 12:45:15 PM »
@saratoga
thank you for your reply.
I can't say that "make" skip is very smart.
The delay when just one file is changed is 7s.
The delay when nothing is changed is 5s.
I know it's the time used to parse for changed files since there is no delay when make compiles a one-file project. That's really annoying when you develop & compile on just one file of the rockbox project !

P.S. in my config, "make plugins" doesn't work ("*** No rule to make target" error) and I doubt it will change things a lot.

Quote
ubuntu@ubuntu-desktop:~/rockbox/build_lua$ time make
CC apps/plugin.c
LD rockbox.elf
OC rockbox.bin
SCRAMBLE rockbox.sansa
Creating rockbox-info.txt

real   0m6.962s
user   0m3.216s
sys   0m3.364s

Quote
ubuntu@ubuntu-desktop:~/rockbox/build_lua$ time make
make: Nothing to be done for `all'.

real   0m5.660s
user   0m2.572s
sys   0m2.876s
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: More rapid compilation
« Reply #3 on: July 28, 2011, 01:07:41 PM »
Quote from: hobby16 on July 28, 2011, 12:45:15 PM
P.S. in my config, "make plugins" doesn't work ("*** No rule to make target" error) and I doubt it will change things a lot.

Its actually "make rocks".  You can see a complete list of options with "make help".
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  More rapid compilation
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.065 seconds with 15 queries.