A sick idea - mmapped file output

Sam TH sam@uchicago.edu
Thu Nov 2 22:16:00 GMT 2000


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













-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6Alg5t+kM0Mq9M/wRArnLAJ97u35c7q9MEscX3Of2MaAYJnmV1QCg2IPf
t8M+cPwYRjSQ5FrstLxx+Wk=
=t9yq
-----END PGP SIGNATURE-----


More information about the Gcc mailing list