{"id":181,"date":"2014-01-20T14:37:55","date_gmt":"2014-01-20T14:37:55","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/icsf\/?page_id=181"},"modified":"2025-09-03T16:16:46","modified_gmt":"2025-09-03T16:16:46","slug":"compilersgnu","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/software\/applications\/compilersgnu\/","title":{"rendered":"Compilers &#8211; GNU"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>The GNU Compiler Collection supports a number of programming languages.<\/p>\n<p>Several versions are available on the iCSF &#8211; please see the table below.<\/p>\n<p>Advice on programming in Fortran or C is currently beyond the scope of this webpage.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>None, the compilers are open source.<\/p>\n<h2>Set up procedure<\/h2>\n<p>This depends on which version you require.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Version<\/strong><\/td>\n<td><strong>Commands\/compilers available<\/strong><\/td>\n<td><strong>Module required<\/strong><\/td>\n<td><strong>Additional Notes<\/strong><\/td>\n<\/tr>\n<tr>\n<td>14.2.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/14.2.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>11.5.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>None<\/td>\n<td>This is now the system default in EL9<\/td>\n<\/tr>\n<tr>\n<td>11.2.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/11.2.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>8.3.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/8.3.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>8.2.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/8.2.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>6.4.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/6.4.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>4.9.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/4.9.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>4.7.0<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/4.7.0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>4.6.2<\/td>\n<td>gcc, gfortran<\/td>\n<td>module load compilers\/gcc\/4.6.2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>4.4.6<\/td>\n<td>gcc, gfortran<\/td>\n<td>None<\/td>\n<td>This was the system default in EL7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>By loading\/swapping modules, the correct <code>LD_LIBRARY_PATH<\/code> will be set.<\/p>\n<h2>Running the application<\/h2>\n<h3>Example Code Compilations<\/h3>\n<pre>   gcc hello_world.c -o hello\r\n       #\r\n       # ...produces executable binary called \"hello\"...\r\n       #\r\n\r\n   gfortran hello_fworld.f77 -o f77hello\r\n   gfortran hello_fworld.f95 -o f95hello\r\n       #\r\n       # ...produce executable binary called \"f77hello\" or \"f95hello\"...\r\n       #\r\n<\/pre>\n<p>To run your code:<\/p>\n<pre>   .\/f95hello\r\n<\/pre>\n<h2>Further info<\/h2>\n<ul>\n<li>Online manuals available from the command line:<\/li>\n<\/ul>\n<pre>     man gcc\r\n         # for the C\/C++ compiler\r\n\r\n     man gfortran\r\n         # for the fortran compiler\r\n<\/pre>\n<ul>\n<li><a href=\"http:\/\/gcc.gnu.org\/\">GNU Compiler Collection website<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview The GNU Compiler Collection supports a number of programming languages. Several versions are available on the iCSF &#8211; please see the table below. Advice on programming in Fortran or C is currently beyond the scope of this webpage. Restrictions on use None, the compilers are open source. Set up procedure This depends on which version you require. Version Commands\/compilers available Module required Additional Notes 14.2.0 gcc, gfortran module load compilers\/gcc\/14.2.0 11.5.0 gcc, gfortran None.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/software\/applications\/compilersgnu\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":43,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-181","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":10,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/181\/revisions"}],"predecessor-version":[{"id":1520,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/181\/revisions\/1520"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/43"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/media?parent=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}