Translator (computing)

A translator or programming language processor is a computer program that converts the programming instructions written in human convenient form into machine language codes that the computers understand and process. It is a generic term that can refer to a compiler, assembler, or interpreter—anything that converts code from one computer language into another.[1][2] These include translations between high-level and human-readable computer languages such as C++ and Java, intermediate-level languages such as Java bytecode, low-level languages such as the assembly language and machine code, and between similar levels of language on different computing platforms, as well as from any of these to any other of these.[1] Software and hardware represent different levels of abstraction in computing. Software is typically written in high-level programming languages, which are easier for humans to understand and manipulate, while hardware implementations involve low-level descriptions of physical components and their interconnections. Translator computing facilitates the conversion between these abstraction levels.[3] Overall, translator computing plays a crucial role in bridging the gap between software and hardware implementations, enabling developers to leverage the strengths of each platform and optimize performance, power efficiency, and other metrics according to the specific requirements of the application.[4]

Programming language processors

The software development process is noticeably different depending on the type of translator used by a developer, this of course differs from translator to translator. Stages of the development process that are influenced by a translator include the initial programming stage, the debugging stage, and most notably the execution process. Factors that are affected during these stages include code performance, feedback speed for the debugging process, language features, and platform independence. Some of the more notable programming language processors used to translate code are compilers, interpreters, and assemblers.[5]

Compilers

Compiler software interacts with source code by converting it typically from a higher-level programming language into object code that can later be executed by the computer's central processing unit (CPU).[6] The object code created by the compiler consists of machine-readable code that the computer can process. This stage of the computing process is known as compilation. Utilizing a compiler leads to separation in the translation and execution process. After compilation, the new object code is saved separately from the source code resulting in the source code no longer being required for the execution process. With compiler programs, the translation process occurs one-time which results in efficient code that can be executed quickly for any number of times.[6]

There are clear benefits when translating high-level code with a compiler.[7]

  • Compilation leads to faster run time when executing the program. Since code is translated before execution, its results are optimized and fast.
  • Compilers are more ideal when protecting code from plagiarism and preventing the use of source code from an unauthorized party.
  • Object code only needs to be created once when compiling source code.

There are clear disadvantages when translating high-level code with a compiler.[7]

This image represents the translation process through a compiler.
  • Object code produced during compilation is specific to a machine's instruction set architecture (ISA). This results in object code that is dependent on a specific type of machine in order to run.
  • The debugging stage of the development process cannot start until the program is fully compiled. Errors are only viewable after compilation.
  • Any source code that is modified must be fully recompiled to be executed again.

Some notable programming languages that utilize compilers include:[8]

Interpreters

Interpreter programs function by interpreting high-level code into machine useable code while simultaneously executing the instructions line by line. Unlike compilers, interpreters do not need to compile the code prior to executing the instructions. The translation and execution process are done simultaneously and is interrupted in the event of an error in the program. The use of an interpreter allows developers to test and modify code in real-time. It makes the debugging process easier as well as aids in making more efficient code. Since the translation and execution process is done simultaneously, the execution time for interpreter programs is substantial.[5]

There are clear benefits when translating high-level code with an interpreter.

  • Since object code is not created in the interpretation process, less memory is required for the code.[5]
  • Interpreter languages do not create machine-specific code and can be executed on any type of machine.[7]
  • The development and debugging process is typically quicker due to less complexity and it has more flexibility.[7]

There are clear disadvantages when translating high-level code with an interpreter.[7]

  • Programs require that an interpreter is installed on the machine in order to run and interpret it.
  • The execution time of the program is slower than a compiler.

Some notable programming languages that utilize interpreters include:[5]

Assemblers

An assembler program functions by converting low-level assembly code into a conventional machine code that is readable by the CPU. The purpose of assembly language, like other coding languages, is to make the programming process more user-friendly than programming in machine language. Assembler languages utilize mnemonic devices and symbolic addresses to differentiate between opcode, operands, and specific memory addresses. Many of these components are not easily readable by humans and therefore mnemonics, symbols, and labels make the code decipherable. The assembler works by processing code one line at a time and then moves on to the next instruction. To eliminate issues that occur due to addressing locations, the translation process known as assembly is typically done in a two-pass process. The first pass of assembly is done in order to identify binary addresses that correspond to the symbolic names. This is essential in order to guide pass two which is the line-by-line translation into machine language.[9]

Commonly used assemblers include:

See also

References

  1. ^ a b Thornton, Scott (2017-02-17). "What are compilers, translators, interpreters, and assemblers?". MicrocontrollerTips. Archived from the original on 2019-07-19. Retrieved 2020-02-02.
  2. ^ "Translators And Utilities For Program Development". Software Handbook (PDF). Intel Corporation. 1984 [1983]. p. 3-1. 230786-001. Archived (PDF) from the original on 2020-01-29. Retrieved 2020-01-29.
  3. ^ Beaulieu, Adrien (2022). "A15. Front-End and Back-End Technologies: The Importance of Proficiency in Multiple Programming Languages".
  4. ^ Pagadala, Santosh Kumar (2004). "Portable implementation of computer aided design environment for composite structures".
  5. ^ a b c d "Language Processors: Assembler, Compiler and Interpreter". GeeksforGeeks. 2018-08-09. Retrieved 2024-03-15.
  6. ^ a b "CSE 5317/4305: Design and Construction of Compilers". lambda.uta.edu. Retrieved 2024-03-15.
  7. ^ a b c d e "Translator Types". Ada Computer Science. 2024-03-15. Retrieved 2024-03-15.
  8. ^ "Compiled versus interpreted languages". www.ibm.com. Retrieved 2024-03-15.
  9. ^ a b Patt, Yale; Patel, Sanjay (2019-08-15). Introduction to computing systems: From bits & gates to C/C++ & Beyond (3rd ed.). New York, NY: McGraw-Hill. pp. 231–243. ISBN 978-1260150537.
  10. ^ a b c d Stokoe, William (2024-05-06). "sign language structure". Annual Review of Anthropology. 9: 365–390. doi:10.1146/annurev.an.09.100180.002053. Retrieved 2024-03-15.

Further reading


Read other articles:

Road in Malaysia Federal Route 3Wakaf Bharu-Kota Bharu-Kubang Kerian Highway(WKK Highway)Route informationPart of AH18 Existed2008–presentHistoryCompleted in 2012Major junctionsNorthwest endWakaf Bharu (East)Pasir PekanMajor intersections FT 134 Jalan Pengkalan Kubur FT 8 Federal Route 8 FT 57 Jalan Long Yunus FT 209 Jalan Pasir Hor FT 131 Jalan Raja Perempuan Zainab II FT 211 Jalan Kubang Kerian-BachokSoutheast endKubang Kerian LocationCountryMalaysiaPrimarydestinationsKota Bharu...

 

 

Danubio F.C.Nama lengkapDanubio Fútbol ClubJulukanLa Franja, Danu, La CurvaBerdiri1 March 1932StadionJardines Del Hipódromo,Montevideo, Uruguay(Kapasitas: 18,000)KetuaÓscar CuruchetPelatihLeonardo RamosLigaPrimera División Uruguaya2011–126th Kostum kandang Kostum tandang Kostum ketiga Musim ini Danubio Fútbol Club adalah tim sepak bola profesional asal Uruguay yang kini berkompetisi di Primera División Uruguaya. Tim ini berbasis di Montevideo, ibu kota Uruguay.[1] Tim ini berh...

 

 

Nama ini menggunakan cara penamaan Spanyol: nama keluarga pertama atau paternalnya adalah Caicedo dan nama keluarga kedua atau maternalnya adalah Corozo. Felipe Caicedo Caicedo bermain untuk Lokomotiv MoskwaInformasi pribadiNama lengkap Felipe Salvador Caicedo CorozoTanggal lahir 5 September 1988 (umur 35)Tempat lahir Guayaquil, EkuadorTinggi 1,83 m (6 ft 0 in) [1]Posisi bermain PenyerangInformasi klubKlub saat ini EspanyolNomor 20Karier junior2002–2004 Barcelona...

Sofyan Abdul DjalilPotret resmi, 2019 Menteri Koordinator Bidang Perekonomian Republik Indonesia ke-15Masa jabatan27 Oktober 2014 – 12 Agustus 2015PresidenJoko Widodo PendahuluChairul TanjungPenggantiDarmin NasutionMenteri Agraria dan Tata Ruang Indonesia ke-13[a]Masa jabatan27 Juli 2016 – 15 Juni 2022PresidenJoko WidodoWakilSurya Tjandra PendahuluFerry Mursyidan BaldanPenggantiHadi TjahjantoMenteri Perencanaan Pembangunan Nasional Indonesia ke-14[...

 

 

Disambiguazione – Se stai cercando altri significati, vedi Serie A 1975-1976 (disambigua). Serie A 1975-1976 Competizione Serie A Sport Calcio Edizione 74ª (44ª di Serie A) Organizzatore Lega Nazionale Professionisti Date dal 5 ottobre 1975al 16 maggio 1976 Luogo  Italia Partecipanti 16 Formula girone unico Risultati Vincitore Torino(7º titolo) Retrocessioni AscoliComoCagliari Statistiche Miglior marcatore Paolo Pulici (21) Incontri disputati 240 Gol segnati 542 (...

 

 

Maharaja of Bharatpur from 1778–1805 This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Ranjit Singh of Bharatpur – news · newspapers · books · scholar · JSTOR (February 2020) (Learn how and when to remove this template message) Maharaja Ranjit SinghMaharaja of Bharatpur Farzand JangPortrait of Maharaja Ranji...

Football aux Jeux olympiques d'été de 1928 Généralités Sport Football Édition 5e Lieu(x) Amsterdam Participants 17 équipes Épreuves 1 Palmarès Tenant du titre Uruguay Vainqueur Uruguay (2) Finaliste Argentine Troisième Italie Meilleur(s) buteur(s) Domingo Tarasconi (11 buts) Navigation Paris 1924 Berlin 1936 modifier Le tournoi de football aux Jeux olympiques d'été de 1928 s'est déroulé du 27 mai au 13 juin 1928 à Amsterdam. Palmarès Épreuves Or Argent Bronze Football ma...

 

 

Cet article est une ébauche concernant une commune du Puy-de-Dôme. Vous pouvez partager vos connaissances en l’améliorant (comment ?). Le bandeau {{ébauche}} peut être enlevé et l’article évalué comme étant au stade « Bon début » quand il comporte assez de renseignements encyclopédiques concernant la commune. Si vous avez un doute, l’atelier de lecture du projet Communes de France est à votre disposition pour vous aider. Consultez également la page d’aid...

 

 

Nova IriansyahNova sebagai Gubernur Aceh, 2020 Gubernur Aceh ke-18Masa jabatan5 November 2020 – 5 Juli 2022(Pelaksana Tugas: 5 Juli 2018–5 November 2020)WakilLowongPendahuluIrwandi YusufPenggantiAchmad Marzuki (Pj.)Wakil Gubernur Aceh ke-10Masa jabatan5 Juli 2017 – 5 Juli 2018GubernurIrwandi YusufPendahuluMuzakir ManafPenggantiLowongAnggota Dewan Perwakilan RakyatMasa jabatan1 Oktober 2009 – 30 September 2014Daerah pemilihanAceh I Informasi pribadiLa...

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

 

 

حمزة المثلوثي   معلومات شخصية الاسم الكامل حمزة المثلوثي الميلاد 25 يوليو 1992 (العمر 31 سنة)زارزونا، تونس الطول 1.84 م (6 قدم 1⁄2 بوصة) مركز اللعب ظهير أيمن الجنسية تونس  معلومات النادي النادي الحالي الزمالك المسيرة الاحترافية1 سنوات فريق م. (هـ.) 2010–2016 النادي الريا...

 

 

习近平 习近平自2012年出任中共中央总书记成为最高领导人期间,因其废除国家主席任期限制、开启总书记第三任期、集权统治、公共政策与理念、知识水平和自述经历等争议,被中国大陸及其他地区的民众以其争议事件、个人特征及姓名谐音创作负面称呼,用以恶搞、讽刺或批评习近平。对习近平的相关负面称呼在互联网上已经形成了一种活跃、独特的辱包亚文化。 权力�...

Administrative division of the Bar Council and English judiciary Northern CircuitPreston, Lancashire where the Northern Circuit is basedFormation1176PurposeAdministrative division of the Bar and judiciary of England and WalesHeadquarters101 Walker StreetLocationEngland and WalesCircuit leaderJamie Hamilton KCParent organizationGeneral Council of the BarWebsitehttps://www.northerncircuit.org.uk/The Northern Circuit is a circuit of the General Council of the Bar and English judiciary.[1]...

 

 

This article possibly contains original research. Please improve it by verifying the claims made and adding inline citations. Statements consisting only of original research should be removed. (February 2021) (Learn how and when to remove this message)   Official Romance language   Co-official Romance language   Latin language was spoken in antiquity but has disappeared.   Latin language is spoken but not official. Global distribution of the Romance la...

 

 

French writer, playwright and composer Alexandrine-Sophie de Bawr, 1810, by Louis-Léopold Boilly Baroness Sophie de Bawr (8 October 1773 – 31 December 1860), born Alexandrine-Sophie Goury de Champgrand, was a French writer, playwright and composer, also known as Comtesse de Saint-Simon, Baronne de Bawr, and M. François. Life She was born in Paris, the illegitimate daughter of Marquis Charles-Jean de Champgrand and opera singer Madeline-Virginie Vian. Her godmother was Madeleine-Sophie Arn...

Giancarlo Sitra Sindaco di CrotoneDurata mandato1990 –1991 PredecessoreGiuseppe Vrenna SuccessoreCarmine Talarico Vicesindaco di CrotoneDurata mandato1988 –1990 Vice diGiuseppe Vrenna Deputato della Repubblica ItalianaDurata mandato23 aprile 1992 –8 maggio 1996 LegislaturaXI, XII GruppoparlamentarePartito Democratico della Sinistra, Progressisti - Federativo Incarichi parlamentariXI Legislatura Membro della VI Commissione Finanze, dal 10 giugno ...

 

 

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: 学生証 – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2013年12月) 2010年、同志社大学 学生証(がくせいしょう、英&#...

 

 

Mammalian protein found in Homo sapiens HMGB1Available structuresPDBHuman UniProt search: PDBe RCSB List of PDB id codes2LY4, 2RTU, 2YRQIdentifiersAliasesHMGB1, HMG1, HMG3, SBP-1, HMG-1, high mobility group box 1, HMGB-1External IDsOMIM: 163905; HomoloGene: 110676; GeneCards: HMGB1; OMA:HMGB1 - orthologsGene location (Human)Chr.Chromosome 13 (human)[1]Band13q12.3Start30,456,704 bp[1]End30,617,597 bp[1]RNA expression patternBgeeHumanMouse (ortholog)Top expressed inventr...

Nut (Engels: utility) is een maat voor relatieve tevredenheid. Het is de totale tevredenheid die een consument bij het consumeren van een combinatie van goederen en diensten ondervindt. Het kan gemodelleerd worden als kardinale of ordinale grootheid. In het laatste geval is bij de vergelijking van nutswaarden alleen van belang welke groter is, niet hoeveel groter. Een groter nut correspondeert met preferentie, en een ordinale nutsfunctie met een preferentierelatie. Samen met de rijkdom en de ...

 

 

Cette liste est une ébauche concernant les Bouches-du-Rhône et les monuments historiques français. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Cet article recense les monuments historiques des Bouches-du-Rhône, en France. Pour les communes suivantes, comportant chacune plus de 20 monuments historiques, voir les listes dédiées : Aix-en-Provence : liste des monuments historiques d'Aix-en-Proven...