Home | Forums | Mark forums read | Search | FAQ | Login

Advanced search
Hot Topics
Buraku hot topic Debito reinvents himself as a Uyoku movie star!
Buraku hot topic Steven Seagal? Who's that?
Buraku hot topic Best Official Japan Souvenirs
Buraku hot topic Multiculturalism on the rise?
Buraku hot topic As if gaijin men didn't have a bad enough reputation...
Buraku hot topic Swapping Tokyo For Greenland
Buraku hot topic
Buraku hot topic Dutch wives for sale
Buraku hot topic Live Action "Akira" Update
Buraku hot topic Iran, DPRK, Nuke em, Like Japan
Change font size
  • fuckedgaijin ‹ General ‹ Tokyo Tech

anybody know of software that can clean up C code?

News, shopping tips and discussion of all things tech: electronics, gadgets, cell phones, digital cameras, cars, bikes, rockets, robots, toilets, HDTV, DV, DVD, but NO P2P.
Post a reply
10 posts • Page 1 of 1

anybody know of software that can clean up C code?

Postby NeoNecroNomiCron » Fri Oct 17, 2003 4:43 pm

Seems like everybody is posting in News etc, the ghetto is all empty.


I am begging does anybody know a good piece of software that can clean up C code.

I cant beg enough.

I will die soon please help.
Am I still not allowed to have a sig?
User avatar
NeoNecroNomiCron
Maezumo
 
Posts: 1668
Joined: Tue Jul 15, 2003 11:30 am
Location: Slacking
Top

You need to be a little more clear

Postby cstaylor » Fri Oct 17, 2003 7:32 pm

Do you mean a pretty-printer? Or something smarter that will take spaghetti and turn it into something Kernighan would be proud of?

And why are you writing in C? Are you a student, are you writing for hardware, or do you just like painful programming languages? :?:
User avatar
cstaylor
 
Posts: 6383
Joined: Mon Apr 29, 2002 2:07 am
Location: Yokohama, Japan
  • Website
Top

Postby NeoNecroNomiCron » Sun Oct 19, 2003 9:47 pm

Yes I am a student , i am kinda writing for hardware, but it is a kinda interface. and it seems i always get stuck with painful languages. what a sorrowful life
Am I still not allowed to have a sig?
User avatar
NeoNecroNomiCron
Maezumo
 
Posts: 1668
Joined: Tue Jul 15, 2003 11:30 am
Location: Slacking
Top

Postby cstaylor » Sun Oct 19, 2003 9:49 pm

Well, you didn't answer what kind of converter you need. Are you talking about a pretty printer or something that will convert code?
User avatar
cstaylor
 
Posts: 6383
Joined: Mon Apr 29, 2002 2:07 am
Location: Yokohama, Japan
  • Website
Top

Postby NeoNecroNomiCron » Sun Oct 19, 2003 10:06 pm

I need something that will convert crapy code, ie full of goto statments and it is full of unefficient statment and i want rid of them. something that will make the code more efficient.
Am I still not allowed to have a sig?
User avatar
NeoNecroNomiCron
Maezumo
 
Posts: 1668
Joined: Tue Jul 15, 2003 11:30 am
Location: Slacking
Top

Postby cstaylor » Sun Oct 19, 2003 11:52 pm

Searched google, couldn't find anything. How many lines of code are you talking about? You'd probably be better off walking through it yourself.

Gotos? Did you have the programmer who wrote that code shot? :x
User avatar
cstaylor
 
Posts: 6383
Joined: Mon Apr 29, 2002 2:07 am
Location: Yokohama, Japan
  • Website
Top

Postby Big Booger » Mon Oct 20, 2003 12:46 am

Try a program called 'lint'
http://www.ictp.trieste.it/~manuals/programming/sun/c-compiler/user_guide/lint.doc.html

I found a similar program as lint is rather dated:

http://www.gimpel.com/index.html

Hope that helps.
My Blog
User avatar
Big Booger
 
Posts: 4150
Joined: Sat Jan 11, 2003 8:56 am
Location: A giant bugger hole
  • Website
Top

Postby cstaylor » Mon Oct 20, 2003 8:37 am

Big Booger: not sure if that will work (Lint is a static analyzer, not a code generator). The code is correct, just ugly. ;)
User avatar
cstaylor
 
Posts: 6383
Joined: Mon Apr 29, 2002 2:07 am
Location: Yokohama, Japan
  • Website
Top

Postby NeoNecroNomiCron » Mon Oct 20, 2003 9:32 am

Thanks if the input both of you. I wish i could shoot the guy for all the goto's but unfortunatly I cant find him lol... Anyway if there is no software that will get rid of gotos. how can i work around them. the liberaries are full of them. I just want to remove them from the lib's but without editing the main code.


I really havnt a clue lol...
Am I still not allowed to have a sig?
User avatar
NeoNecroNomiCron
Maezumo
 
Posts: 1668
Joined: Tue Jul 15, 2003 11:30 am
Location: Slacking
Top

Postby Big Booger » Mon Oct 20, 2003 10:48 am

Think you are going to have to hit this the manual style. I've searched for a software that searches for specific statements and removes them automatically, but I came up nil.

I thought you were having issues with the code.. I didn't know you just wanted to optimize it. Guess I should have read your first post a little more carefully.

I'll keep looking and will post if I find anything.

This site looks promising:

http://www.thefreecountry.com/programming/compilerconstruction.shtml

There are a few tools there that may get the job done.. not too sure about it though.

How many lines of code are we talking about here? 1000's or 100000's?
My Blog
User avatar
Big Booger
 
Posts: 4150
Joined: Sat Jan 11, 2003 8:56 am
Location: A giant bugger hole
  • Website
Top


Post a reply
10 posts • Page 1 of 1

Return to Tokyo Tech

Who is online

Users browsing this forum: No registered users and 1 guest

  • Board index
  • The team • Delete all board cookies • All times are UTC + 9 hours
Powered by phpBB® Forum Software © phpBB Group