Fortran: diferència entre les revisions

Contingut suprimit Contingut afegit
Cap resum de modificació
Línia 31:
Finalment, al 1954, l'equip va presentar  la primera especificació de '''Fortran''' (IBM Mathematical FORmula TRANslating System) i al 1956 van presentar la primera alternativa de llenguatge de programació per a l'ordinador IBM 704.
 
No obstant, el llenguatge de Fortran va ser exclusiu per a ordinadors IBM fins al 1961, moment en què va passar a ser públic per poder ser usat per altres fabricants i ampliar la base d'IBM. A partir d'aquí s'han anat creant noves versions del llenguatge per adaptar-les a les noves tecnologies. (lesLles dues últimes, vana serdata alde 2003novembre i2020, van ser publicades el 2008) i 2018.<ref>{{Ref-web|títol=Fortran, el primer lenguaje de programación de alto nivel y el inicio de los compiladores|url=https://parceladigital.com/|consulta=2019-11-23|llengua=Spanish|nom=Manuel|cognom=Llaca}}</ref>
 
== Com funciona? ==
Línia 49:
* Fortran 2003 [[ISO]]/IEC 1539-1:2004 Títol: ''Information technology - Programming languages - Fortran - Part 1: Base language''
* Fortran 2008 [[ISO]]/IEC 1539-1:2010
* Fortran 2018, inicialment anomenat Fortran 2015. És l'última versió existent a 11.2020.
* Fortran 2015, en preparació
 
=== Fortran 90 ===
Línia 88:
Aquest és l'últim estàndard, ISO/IEC 1539-1:2010, conegut de manera informal com Fortran 2008, va ser aprovat el setembre de 2010.<ref>N1836, Summary of Voting/Table of Replies on ISO/IEC FDIS 1539-1, Information technology - Programming languages - Fortran - Part 1: Base language {{PDFlink|ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1836.pdf| 101&nbsp;KiB<!-- application/pdf, 101k bytes -->}}</ref><ref>{{ref-web|títol=Fortran 2008 - Last Working Draft|url=http://www.j3-fortran.org/doc/year/10/10-007.pdf|editor=Gnu.Org|consulta= 10 maig 2014}}</ref> Tal com el Fortran 95, aquesta és una modificació menor, que incorpora aclariments i correccions a Fortran 2003.
 
=== Fortran 20152018 ===
La darrera revisió del llenguatge (Fortran 2018) es coneixia anteriorment com Fortran 2015. <ref name="Fortran2018name">{{cite web|url=https: //software.intel.com/en-us/blogs/2017 / 11/20 / doctor-fortran-in-eighteen-is-the-new-quinze|title=El doctor Fortran a "Divuit és el nou quinze"|publisher=Software.intel.com|accessdate=20 de novembre de 2017}} < / ref> És una revisió important i es va publicar el 28 de novembre de 2018. <nowiki><ref name = "F2018"> </nowiki>{{cite web|url=https: //wg5-fortran.org/f2018.html|publisher=ISO|title=Fortran 2018|accessdate=30 de novembre de 2018}}</ref>
La següent versió del llenguatge (Fortran 2015) serà una revisió menor de l'estandard Fortran 2008. Actualment, està planejat d'incorporar noves funcionalitats per a millorar la interoperacionalitat entre Fortran i C i facilitar la computació paral·lela.<ref name="Fortran2015">{{ref-web|url=http://software.intel.com/en-us/blogs/2013/08/08/doctor-fortran-goes-dutch-fortran-2015|títol=Doctor Fortran Goes Dutch: Fortran 2015}}</ref>
 
Fortran 2018 incorpora dues especificacions tècniques publicades prèviament:
 
* ISO / IEC TS 29113: 2012 Més interoperabilitat amb C <ref name="TS29113">{{cite web|url=https: //wg5-fortran.org/N1901-N1950/N1942.pdf|title=Més interoperabilitat amb C|publisher=ISO|accessdate=20 de novembre de 2017}}</ref>
 
* ISO / IEC TS 18508: 2015 Funcions paral·leles addicionals a Fortran <ref name="TS18508">{{cite web|url=http: //isotc.iso.org/livelink/livelink? Func = ll & objId = 17288706 & objAction = Open|title=Funcions paral·leles addicionals a Fortran|publisher=ISO|accessdate=20 de novembre de 2017}}</ref>
 
Altres canvis i noves funcions inclouen compatibilitat amb ISO / IEC / IEEE 60559: 2011 (la versió de l ’[[IEEE 754| IEEE floating point standard]] abans de l’última revisió menor IEEE 754-2019), entrada / sortida hexadecimal, IMPLICIT NONE millores i altres canvis. <ref name="F2015newfeat">{{cite web|url=http: //isotc.iso.org/livelink/livelink? func = ll & objId = 19044944 & objAction = Open|publisher=ISO|title=The New Funcions de Fortran 2015|accessdate=23 de juny de 2017}}</ref> <ref name="Fortran2015Closes">{{cite web|url=https: //software.intel.com/en-us/blogs/2015/09 / 04 / doctor-fortran-in-one-door-closes|title=Doctor Fortran a "One Door Closes"|publisher=Software.intel.com|accessdate=21 de setembre de 2015}}</ref> <ref name="Fortran20152">{{cite web|url=http: //software.intel.com/en-us/blogs/2013/08/08/doctor-fortran-goes-dutch-fortran-2015|title=El doctor Fortran va holandès : Fortran 2015|publisher=Software.intel.com|accessdate=19 de novembre de 2014}}</ref> <ref>[http://j3-fortran.org/doc/year/18/18-007r1.pdf Fortran 201 8 Document d’interpretació], 9 d’octubre de 2018</ref>
 
== Programa d'exemple (Fortran 90 o 95) ==