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

Pages: 1

Jred
I gotta have more cowbell
Reged: 04/27/04
Posts: 304
Send PM


lines of code
#266102 - 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?



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: lines of code new [Re: Jred]
#266103 - 10/11/11 09:55 PM


> I'm not sure if I did that 100% correctly. Should .h files be included?

Depends if Sam Jackson did ;-) Because not all lines of MAME are used in all compiles it's all approximate anyway.



Jred
I gotta have more cowbell
Reged: 04/27/04
Posts: 304
Send PM


Re: lines of code new [Re: R. Belmont]
#266104 - 10/11/11 09:57 PM


Yeah, i get that there's plenty of comments. I guess i can start 'grep -v ^\\\*' and try to get that out, but that'd be a bitch



Jred
I gotta have more cowbell
Reged: 04/27/04
Posts: 304
Send PM


Re: lines of code new [Re: Jred]
#266105 - 10/11/11 09:59 PM


whoops, had the slashes backwards 'grep -v ^/\*'



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: lines of code new [Re: Jred]
#266108 - 10/12/11 12:19 AM


> whoops, had the slashes backwards 'grep -v ^/\*'

I meant more that osd/sdl doesn't apply to baseline builds and vice-versa. And the 680x0 and TMS57002 core sources are generated at compile time, among other things.



Jred
I gotta have more cowbell
Reged: 04/27/04
Posts: 304
Send PM


Re: lines of code new [Re: R. Belmont]
#266138 - 10/12/11 07:52 AM


"So what you're saying is.........I've got a chance!"


Pages: 1

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

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