Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Marty Leisner
Mon, 14 Sep 1992 17:47
unroll loops
Author: Marty Leisner
Date: Mon, 14 Sep 1992 17:47
Date: Mon, 14 Sep 1992 17:47
34 lines
1294 bytes
1294 bytes
I'm using gcc 2.2.2 on a SS2 running SunOS 4.1.2.
I tried the optimization -funroll-loops and cc1 says:
cc1: Invalid option `-funroll-loops"'
This isn't a machine dependent option?
On a sparc, -fno-frame-pointer also doesn't work (I'm not sure a sparc as a
frame pointer?)
Anyway, this is the code I want to optimize...doing something like Duff's
device doesn't increase speed much:
#define SPI 400
#define WIDTH ((int) (SPI*8.5))
#define HEIGHT ((int) (SPI*11))
unsigned char image[HEIGHT][WIDTH];
unsigned char lut[256];
/* apply look up table to an image */
void apply_lut()
{
unsigned char *pimage;
for(pimage = image; pimage <= &image[HEIGHT][WIDTH]; pimage++)
*pimage = lut[*pimage];
}
Marty leisner.henr801c@xerox.com
Member of the League for Programming Freedom
Give me source or waste my time..
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads