Camil Demetrescu edited approach.tex  over 8 years ago

Commit id: a5c766dcb4e973de9636fed2537dafe43cca445d

deletions | additions      

       

\subsection{Discussion}  \label{ss:discussion}  Instrumenting functions for OSR at a higher level of representation than machine code yields several benefits: 1) \begin{enumerate}  \item {\em  platform independence: independence}:  both the base/variant code and the OSR instrumentation code are lowered to native code by the compiler backend, which handles the details of the target ABI; 2) \item  [...] %\ref{fi:overview-osr-final}  %\begin{verbatim}  %int fac(int n) {  % int i = 2, f = 1;  % while (i<=n) f *= i++;  % return f;  %}  %\end{verbatim}  %  %\begin{verbatim}  %int fac(int n) {  % int i = 2, f = 1;  % while (i<=n) {  % if (osr_cond) return fac_osr(n,i,f);   % f *= i++;   % } return f;  %}  %\end{verbatim}  %  %\begin{verbatim}  %int fac_osr(int n) {  % goto L;  % int i = 2, f = 1;  % while (i<=n) L: f *= i++;  % return f;  %}  %\end{verbatim} \end{enumerate}  \ifdefined\noauthorea  \begin{figure}[t]