gas really slow on long lines

2007-08-23 Thread Anders Waldenborg
Assembling large files seemed a bit slow, so I did some investigations. It turned out that long lines was making it slow. There is a huge difference with a file with 100*"\t.long 0\n" and a file with "\t.long 0" + (99*",0") Numbers talk, so here is a little table. First column is numbe

Re: gas really slow on long lines

2007-08-23 Thread Alan Modra
On Thu, Aug 23, 2007 at 05:05:09PM +0200, Anders Waldenborg wrote: > So I fired up oprofile and did some profiling. lex_got in tc-i386.c > turned up as the main offender. > > Without any deeper knowledge of the code it seems really stupid that > lex_got checks until end of line when it is called o