JonEberger Posted April 5, 2007 Report Share Posted April 5, 2007 has anyone on this board used f2c before? how did this work for you? [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
tyme Posted April 6, 2007 Report Share Posted April 6, 2007 Fortran? who programs in that anymore? :P (just joking, of course ;) ) Quote Link to comment Share on other sites More sharing options...
shengchieh Posted April 7, 2007 Report Share Posted April 7, 2007 I used f2c once in the past. I found it slow and "long". In other words, the code added alot more lines than if I had converted it myself to c. In the long term, you are better off converting the code to C than converting the legacy code using f2c. You can use f2c as your "first leg" to convert the code (from FORTRAN to C). And it's helpful if you don't know C well since the conversion gives you the C "grammers" (and then you'll be chopping the code; it's easier to chop the code than writing in C if you don't know C well). Sheng-Chieh p.s. My website (signature) under programming:C has links ton C tutorial if you need them. Quote Link to comment Share on other sites More sharing options...
JonEberger Posted April 7, 2007 Author Report Share Posted April 7, 2007 hey thanks for the replies everybody. unfortunately some code that i obtained for industrial use is in fortran. i would be okay, except that one of the other packages which i'm using is in C. so i have to either get the guy who writes to put the other package in fortran (not going to happen!), scrap this package and go for something that is in C (already have an alternative), or use f2c (as recommended by the author of the code). thanks for the comments and the willingness to help with C. for anything i'm going to do, i think i'm probably ok. but if anyone has any suggestions for an alternative to using the f2c for the fortran code, i'm all ears (or rather eyes, as I'll be reading the comment). coincidentally, does anyone on here have any experience with using donlp2? it's a public domain sequential quadratic programming routine (nonlinear problem solver) for optimization? thanks, jon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.