Revision of help pages for bytecode function
[scilab.git] / scilab / modules / functions / help / pt_BR / bytecode.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) ????-2008 - INRIA Serge Steer
5  *
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at
10  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11  *-->
12 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="bytecode" xml:lang="pt">
13     <refnamediv>
14         <refname>bytecode</refname>
15         <refpurpose>dada uma função, retorna "bytecode" (código de bytes) da
16             função em um array Scilab e vice-versa.
17         </refpurpose>
18     </refnamediv>
19     <refsynopsisdiv>
20         <title>Seqüência de Chamamento</title>
21         <synopsis>
22             x = bytecode(f)
23             f = bytecode(x)
24         </synopsis>
25     </refsynopsisdiv>
26     <refsection>
27         <title>Parâmetros</title>
28         <variablelist>
29             <varlistentry>
30                 <term>f</term>
31                 <listitem>
32                     <para>função Scilab</para>
33                 </listitem>
34             </varlistentry>
35             <varlistentry>
36                 <term>x</term>
37                 <listitem>
38                     <para>vetor linha int32</para>
39                 </listitem>
40             </varlistentry>
41         </variablelist>
42     </refsection>
43     <refsection>
44         <title>Descrição</title>
45         <para>
46             <code>x = bytecode(f)</code> retorna o "bytecode" da função
47             <varname>f</varname> no array Scilab de inteiros
48             <varname>x</varname>.
49         </para>
50         <para>
51             <code>f= bytecode(x)</code> retorna em <varname>f</varname> a
52             função associada ao "bytecode" dado no array Scilab de inteiros
53             <varname>x</varname>.
54             <warning>
55                 AVISO: a validade de <varname>x</varname> não é
56                 verificada.
57             </warning>
58         </para>
59     </refsection>
60     <refsection>
61         <title>Observação</title>
62         <para>O bytecode da função Scilab evoluirá drasticamente no futuro, então
63             o uso dessa função deve se restringir à manipulação de instruções de
64             profiling.
65         </para>
66     </refsection>
67     <refsection>
68         <title>Exemplos</title>
69         <programlisting role="example"><![CDATA[
70 function a=foo(),a=sin(3),endfunction
71 bytecode(foo)
72  ]]></programlisting>
73     </refsection>
74     <refsection role="see also">
75         <title>Ver Também</title>
76         <simplelist type="inline">
77             <member>
78                 <link linkend="add_profiling">add_profiling</link>
79             </member>
80             <member>
81                 <link linkend="bytecodewalk">bytecodewalk</link>
82             </member>
83             <member>
84                 <link linkend="macr2lst">macr2lst</link>
85             </member>
86             <member>
87                 <link linkend="macr2tree">macr2tree</link>
88             </member>
89         </simplelist>
90     </refsection>
91 </refentry>