MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Jred
I gotta have more cowbell
Reged: 04/27/04
Posts: 304
Send PM
lines of code
10/11/11 09:51 PM


So i was watching Jurassic Park the other day and there's a line in there that Samuel L Jackson says about there about "about 2 million lines of code" to run Jurassic Park, so I was curious how much is in MAME now, so I ran the following:

[mamesrc]$ total=0; for x in `find ./ -name *.c `; do i=`cat $x | wc -l`; total=$(($total+$i)); done; for y in `find ./ -name *.h`; do j=`cat $y | wc -l`; total=$(($total+$j)); done; echo $total
2692392

So MAME has more than Jurassic Park

I'm not sure if I did that 100% correctly. Should .h files be included? Is there another extension that valid i'm missing?







Entire thread
Subject Posted by Posted on
* lines of code Jred 10/11/11 09:51 PM
. * Re: lines of code R. Belmont  10/11/11 09:55 PM
. * Re: lines of code Jred  10/11/11 09:57 PM
. * Re: lines of code Jred  10/11/11 09:59 PM
. * Re: lines of code R. Belmont  10/12/11 12:19 AM
. * Re: lines of code Jred  10/12/11 07:52 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 343 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1588