资源描述:
《How to Setup and Configure an Open Source Fortran Development Environment on Windows》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、HowtoSetupandConfigureanOpenSourceFortranDevelopmentEnvironmentonWindowsJihuanTianSaturday,December24,2011WemusthavealreadybeenfamiliarwithproprietaryFortranprogrammingenvironments,forexample,·CompaqVisualFortranIDE(whichisactuallyacombinationofMicrosoft’sVisualStudio6IDEandCompaq’sFortrancompile
2、ralongwithcommercialnumericallibrarieslikeIMSLbyVisualNumericsandlibrariesfordevelopingWindowsGUIprograms.·VisualStudio2005oraboveandintegratedIntelFortrancompiler.Ofcourse,thesetoolsaresoconvenientthatwealmosthavenotimecostonmasteringthem.However,theymayleadyoutothefollowingtraps:1.Theoperations
3、,like“creatingaproject”,“pressingabuttontocompileanddebug”,willhidethebasicandimportantknowledgeabouthowtotransformthesourcecodeintoafinalexecutableprogramanddepriveyouofthevaluablechancetolearnmoreadvancedtopicsofknowledge.2.Foracomplexprojectstructurecontainingmanytestcases,librariesandprograms
4、tobecompiledanddebugged,theconvenienceand“advantage”ofIDEfadeawayandfurthermore,IDEwouldprobablybeincapableofsuchaformidablesituation.3.Windowsoperatingsystemisstillnotprofessionalandresource-savingenoughforaseriousscientifichighperformancecomputing.Therefore,transplantoftheprojecttoLinuxorUNIX-l
5、ikesystemsmayberequisite.However,yourMSStudioprojectscan’tbedirectlyandeasilycompiledonanyotherplatformsexceptWindows.4.Becausewehaven’tboughtallthosecommercialtools(evenafreeFortrancompilerisdifficulttofind)andneitherdomanyotherpeople,itisalmostimpossibletopublishanddistributethecodetothepublic.
6、ThesetupofanopensourcedevelopmentenvironmentonWindowsisquiteeasyaslongasyouhaveabasicknowledgeoralittleexperienceaboutprogrammingunderLinuxenvironment.Atpresent,tomypersonalknowledge,twosolutionsareavailable:gcc+gdb+Autotools+Emacsandgcc+gdb+Eclispe,wheregccisanassemblyofseveralcompilersincluding
7、C,C++,Fortran,Java,Object-C,Ada,etc.;gdbisacommandlinedrivendebugger;Autotoolsisanautomationtoolsetformanagingprojects;EmacsisasupertexteditorwhichisnotanIDEbutmuchpowerfulthananyotherIDEs;EclipseisanopensourceIDEbelon