News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

default switches

Started by czerny, April 17, 2013, 05:36:59 PM

Previous topic - Next topic

czerny

I would like to have the project defaults to 'no optimization' (nothing of -Ot -Os -Ox).
I have searched in the registry and in Pelles install dir, but wasn't able to find the place were the defaults are saved. May be I have missed it. Any hints?

Stefan Pendl

If you initialize through a Wizard, then the Wizard sets the options.
---
Stefan

Proud member of the UltraDefrag Development Team

czerny

Quote from: Stefan Pendl on April 17, 2013, 10:10:05 PM
If you initialize through a Wizard, then the Wizard sets the options.
I usually do not use a wizard.

czerny

There seems to be no way to achieve this.
Could one of the moderators move this to feature request, please?

frankie

"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

I want to find a way to set the default compiler (linker) switches.
I have tried to solve this problem, but have not found a solution yet.

One can set this values by the macro 'AddIn_SetProjectSymbol'. But I see no clean way to distinguish between a new project and a project where the user has set his switches allready. (frankie: The above mentioned addins don't have this problem.)

A 'durty' solution could be to insert a special -DNOTNEW to the CCFLAGS.


TimoVJL

#6
Maybe by editing poide.exe ?
32-bit.
000DDA14 - 000DDA18
           0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F  0123456789ABCDEF
000dda10  66 00 20 00 2d 00 4f 00 74 00 20 00 2d 00 57 00  f. .-.O.t. .-.W.
maybe -Ze is good replacement.
000DDE0E - 000DDE12
           0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F  0123456789ABCDEF
000dde00  2d 00 63 00 6f 00 66 00 66 00 20 00 2d 00 4f 00  -.c.o.f.f. .-.O.
000dde10  74 00 20 00 2d 00 57 00 31 00 20 00 2d 00 5a 00  t. .-.W.1. .-.Z.
maybe -Ox is good replacement.
May the source be with you

JohnF

czerny,

Did you not like timovjl's suggestion?

John

czerny

Quote from: JohnF on June 24, 2013, 09:05:55 PM
czerny,

Did you not like timovjl's suggestion?

John
No, I do not like this way.
It could be a temporary solution, but I do not like to do this (and other patches) every time a new release comes out.
I want to have this further as a feature request.