Re: how to specify instruction size for optimization

2010-01-15 Thread Ian Lance Taylor
cirrus75 writes: > I could not understand exactly how to specify instruction size to gcc (so it > can really optimize the code size when -Os is used). > > I would like to inform gcc that if some registers are used for certain > operations, the instruction will be smaller. For example, an add wh

how to specify instruction size for optimization

2010-01-15 Thread cirrus75
Hi, I could not understand exactly how to specify instruction size to gcc (so it can really optimize the code size when -Os is used). I would like to inform gcc that if some registers are used for certain operations, the instruction will be smaller. For example, an add which destination regi