For faster navigation, this Iframe is preloading the Wikiwand page for Rappresentazione intermedia.

Rappresentazione intermedia

Da Wikipedia, l'enciclopedia libera.

Una rappresentazione intermedia è la struttura dati o il codice usato internamente da un compilatore o macchina virtuale per rappresentare il codice sorgente. La rappresentazione intermedia è progettata per agevolare un'ulteriore elaborazione, in termini di ottimizzazione o traduzione.[1] Una "buona" rappresentazione deve essere accurata – in grado di rappresentare il codice sorgente senza perdita di informazioni[2] – e indipendente dal linguaggio di partenza e di arrivo.[1] Una rappresentazione intermedia può essere una struttura dati in memoria o uno speciale codice basato su pila o tupla leggibile dal programma.[3] Nel secondo caso, si parla di linguaggio intermedio.

Un tipico esempio è da trovarsi nei compilatori più moderni. L'interprete di CPython trasforma il testo leggibile che rappresenta un programma in una struttura intermedia a grafo che permette l'analisi del flusso e il riordino prima dell'esecuzione. L'uso di una rappresentazione intermedia come questa permette a sistemi compilatori come GNU Compiler Collection e LLVM di essere adoperati da molti diversi linguaggi di partenza per generare codice adatto a svariate architetture.

  1. ^ a b David Walker, CS320: Compilers: Intermediate Representation (PDF), su cs.princeton.edu. URL consultato il 12 febbraio 2016.
  2. ^ Fred Chow, The Challenge of Cross-language Interoperability, in ACM Queue, vol. 11, n. 10, 22 novembre 2013. URL consultato il 12 febbraio 2016.
  3. ^ Ray Toal, Intermediate Representations, su cs.lmu.edu. URL consultato il 12 febbraio 2016.
  Portale Informatica: accedi alle voci di Wikipedia che trattano di informatica
{{bottomLinkPreText}} {{bottomLinkText}}
Rappresentazione intermedia
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?