<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 17.04.2009 5:41 Uhr, Asif Haswarey wrote:
<blockquote
 cite="mid:5E4F49720D0BAD499EE1F01232234BA846529AC4F8@AVEXMB1.qlogic.org"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal">Hi,<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">I have been using the tokenizer “toke”
fcode-utils
version 1.0.2 from:<o:p></o:p></p>
  <p class="MsoNormal"><a class="moz-txt-link-freetext" href="http://www.openfirmware.info/FCODE_suite">http://www.openfirmware.info/FCODE_suite</a><o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">I found out recently that toke does not support
64-bit
constants.<o:p></o:p></p>
  <p class="MsoNormal">It simply truncates the upper 32-bits.<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">Do we want 64-bit constant support?</p>
  </div>
</blockquote>
<br>
Dear Äsif,<br>
<br>
welcome back!<br>
<br>
I think 64bit constants won't work on architectures with a 32bit cell
size, so FCode using them will not be platform independent.<br>
<br>
Nevertheless, if that's a feature that helps users of toke, we should
definitely support it. <br>
<br>
Can you give a usage example of 64bit constants? I would assume it's
not BARs as those can be read from PCI config space?<br>
<br>
What's the expected output of the tokenizer? put two 32bit constants on
the stack, shift one by 32bit and OR them?<br>
<br>
To be sure, we could add a command line option for enabling 64bit
constants support and print a warning or an error in case it is not
set. Does that sound reasonable?<br>
<br>
Best regards,<br>
Stefan<br>
<pre class="moz-signature" cols="72">-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: <a class="moz-txt-link-abbreviated" href="mailto:info@coresystems.de">info@coresystems.de</a>  • <a class="moz-txt-link-freetext" href="http://www.coresystems.de/">http://www.coresystems.de/</a>
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
</pre>
</body>
</html>