DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-11 19:11:27

plord
Member
Registered: 2010-02-02
Posts: 17

CFLAGS

Are there any recommended CFLAGS to use when building for the DNS-323 ?

Given the memory limitation, I'm been using -Os and also adding -mcpu=arm926ej-s

But I've no clue if this is helpful or not !

Thanks,

pete

Offline

 

#2 2010-02-27 23:51:03

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: CFLAGS

I always use

-march=armv5te -mtune=arm926ej-s -O2

Things are stable and run great.

Offline

 

#3 2010-02-28 17:16:01

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: CFLAGS

CFLAGS=-Os -march=armv5te
should be best.

-Os for the the small memory footprint.
-mcpu is obsolete. combing -march and -mtune does not make sense in this scenario.

Offline

 

#4 2010-03-01 03:05:35

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Offline

 

#5 2010-03-02 12:00:22

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: CFLAGS

look up what these options do, and you'll find out

Offline

 

#6 2010-03-02 22:38:23

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: CFLAGS

I already know what they do. That's awful presumptuous of you to think I only have one ARM box.

You optimize loosely for an armv5te. I optimize specifically for the DNS-323 but yet still retain use of the binaries on another machine.

Last edited by madpenguin (2010-03-02 22:42:39)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB