This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A sick idea - mmapped file output


On Thu, Nov 02, 2000 at 09:40:53PM -0800, Zack Weinberg wrote:

> - Does it generate three identical files, each 32MB, when run?  They
>   will be named mmapexpt.{stu,cle,hcl}.  The actual contents of each
>   file are not interesting, and they're binary garbage, so don't cat
>   them.
> - What's the timing report say?

[sam@bur-jud-175-135 sam]$ ./a.out 
	usr	sys	wall
stupid	838	113	1105
clever	617	36	693
signal	593	223	1220

[sam@bur-jud-175-135 sam]$ ls mm*
-rw-r--r--    1 sam      sam      33554432 Nov  3 00:11 mmapexpt.cle
-rw-r--r--    1 sam      sam      33554432 Nov  3 00:11 mmapexpt.hcl
-rw-r--r--    1 sam      sam      33554432 Nov  3 00:11 mmapexpt.stu

[sam@bur-jud-175-135 sam]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)

	sam th		     
	sam@uchicago.edu
	http://www.abisource.com/~sam/
	GnuPG Key:  
	http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xCABD33FC













PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]