<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 3.0cm 2.0cm 3.0cm 2.0cm; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P.MsoPlainText {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"
}
LI.MsoPlainText {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"
}
DIV.MsoPlainText {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle19 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle20 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=DA vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>Steven,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>What I would do is avoid the problem all together and leave 
it to the compiler:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>typedef struct</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>{</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;aflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;anotherflag:1;
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;brflag:1;
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;cflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;dflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;eflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;fflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;gflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff 
size=2>unsigned&nbsp;hflag:1;</FONT></SPAN></DIV></SPAN></SPAN></SPAN></SPAN></SPAN></FONT></SPAN></FONT></SPAN></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;iflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;jflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;kflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;lflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;mflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;nflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;oflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>unsigned&nbsp;pflag:1;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>} flag_t ;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007></SPAN><SPAN 
class=785413207-06072007><FONT face=Arial color=#0000ff size=2><SPAN 
class=785413207-06072007><FONT face="Times New Roman" color=#000000 
size=3>&nbsp;</FONT>
<DIV dir=ltr align=left><SPAN class=785413207-06072007></SPAN><SPAN 
class=785413207-06072007><FONT face=Arial color=#0000ff 
size=2>#define&nbsp;</FONT></SPAN>&nbsp;<SPAN class=785413207-06072007><FONT 
face=Arial color=#0000ff size=2>SETFLAG(x)&nbsp;&nbsp;&nbsp; 
(flag.(x)=1)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>#define&nbsp; CLRFLAG(x)&nbsp;&nbsp;&nbsp; 
(flag.(x)=0)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>#define&nbsp; TSTFLAG(x)&nbsp;&nbsp; &nbsp; 
(flag.(x))</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN 
class=785413207-06072007></SPAN>&nbsp;</DIV></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>flag_t flag ;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>.....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>SETFLAG(aflag) ;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left></SPAN><SPAN class=785413207-06072007><FONT face=Arial 
color=#0000ff size=2>if ( TSTFLAG(aflag) )</FONT></SPAN></DIV><SPAN 
class=785413207-06072007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN></DIV><SPAN class=785413207-06072007></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=785413207-06072007></SPAN>
<DIV dir=ltr align=left><SPAN class=785413207-06072007></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2>.<SPAN 
class=785413207-06072007>....</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007>The compiler should optimise this in to the best 
solution, bytes or words or what ever. </SPAN></FONT></FONT></FONT></DIV><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT></DIV><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT></DIV><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT></DIV><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT></DIV><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT>
<DIV dir=ltr align=left><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT><FONT><FONT face=Arial color=#0000ff size=2><SPAN 
class=785413207-06072007>Cheers,</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2>T<SPAN 
class=785413207-06072007>on</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=785413207-06072007></SPAN></FONT></FONT></FONT><FONT face=Arial 
color=#0000ff size=2></FONT><BR>&nbsp;</DIV></DIV></DIV></DIV></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> icc-avr-bounces@imagecraft.com 
  [mailto:icc-avr-bounces@imagecraft.com] <B>On Behalf Of </B>Steven 
  Lose<BR><B>Sent:</B> donderdag 5 juli 2007 23:08<BR><B>To:</B> Discussion list 
  for ICCAVR and ICCtiny Users. You do NOT need tosubscribeto icc-announce if 
  you are a member of this.<BR><B>Subject:</B> SV: [Icc-avr] check for 
  adequately nr. of bits<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi 
  Ton.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">It does not check the 
  actual value defined; only one define against another 
  define.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Cheers<o:p></o:p></SPAN></FONT></P>
  <DIV>
  <P><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">Med venlig hilsen / Best regards / mit 
  freundlichen Grüßen<o:p></o:p></SPAN></FONT></P>
  <P><B><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: navy">EC POWER 
  A/S</SPAN></FONT></B><FONT color=navy><SPAN 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P><st1:PersonName w:st="on"><B><FONT face="Times New Roman" color=navy 
  size=3><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: navy">Steven 
  Lose</SPAN></FONT></B></st1:PersonName><FONT color=navy><SPAN 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">Software 
  Ingeniør<o:p></o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">Tlf.: +45 
  87434100<o:p></o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">Direkte tlf. +45 
  58286608<o:p></o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">Email: <A 
  href="blocked::mailto:bsl@ecpower.dk">sl@ecpower.dk</A><o:p></o:p></SPAN></FONT></P>
  <P><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy"><A 
  href="http://www.ecpower.dk">www.ecpower.dk</A></SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Fra:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> 
  icc-avr-bounces@imagecraft.com [mailto:icc-avr-bounces@imagecraft.com] 
  <B><SPAN style="FONT-WEIGHT: bold">På vegne af </SPAN></B>Jaspers, 
  Ton<BR><B><SPAN style="FONT-WEIGHT: bold">Sendt:</SPAN></B> 5. juli 2007 
  14:45<BR><B><SPAN style="FONT-WEIGHT: bold">Til:</SPAN></B> Discussion list 
  for ICCAVR and ICCtiny Users. You do NOT need to subscribeto icc-announce if 
  you are a member of this.<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Emne:</SPAN></B> RE: [Icc-avr] check for adequately 
  nr. of bits</SPAN></FONT><o:p></o:p></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I don't think it is a linker 
  issue. It is a coding issue. You could try to use teh pre-processor with 
  something like this:</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; #include 
  &lt;limits.h&gt;</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; #define 
  NROFFLAGS 17<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  #if&nbsp;&nbsp;(1&lt;&lt;(NROFFLAGS-1)) &gt;&nbsp; 
  UINT_MAX</SPAN></FONT><o:p></o:p></P>
  <DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR 
  “VALUE TO SMALL”&nbsp;&nbsp;&nbsp; </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  #endif</SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><BR></SPAN></FONT><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Mind you, I have not tried 
  it.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Cheers,</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Ton</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <BLOCKQUOTE 
  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; MARGIN: 5pt 0cm 5pt 3.75pt; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
    <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
    face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
    <HR tabIndex=-1 align=center width="100%" SIZE=2>
    </SPAN></FONT></DIV>
    <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma 
    size=2><SPAN lang=EN-US 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
    face=Tahoma size=2><SPAN lang=EN-US 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> icc-avr-bounces@imagecraft.com 
    [mailto:icc-avr-bounces@imagecraft.com] <B><SPAN 
    style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B><st1:PersonName 
    w:st="on">Steven Lose</st1:PersonName><BR><B><SPAN 
    style="FONT-WEIGHT: bold">Sent:</SPAN></B> donderdag 5 juli 2007 
    12:59<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName 
    w:st="on">Discussion list for ICCAVR and ICCtiny Users. You do NOT need 
    tosubscribeto icc-announce if you are a member of 
    this.</st1:PersonName><BR><B><SPAN 
    style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Icc-avr] check for adequately 
    nr. of bits</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P>
    <P class=MsoNormal><A name=""><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi.</SPAN></FONT></A><FONT 
    face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to make the linker check 
    that a variable is defined big enough, but don’t know 
    how.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Basically I need something that 
    tells me how many bits there is in a variable so I can check it up against a 
    defined value.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">#define NROFFLAGS 
    17<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Unsigned int 
    uiFlags;<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">#if NROFFLAGS &gt; 
    NROFBITS(uiFlags)<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;ERROR “VALUE TO 
    SMALL”<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">#endif<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is it possible to do so? (if it 
    had been in code I would just use (sizeof(uiFlags)*8) 
    )<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">And if yes, what is the right 
    way to do it?<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Med 
    venlig hilsen / Best regards / mit freundlichen 
    Grüßen<o:p></o:p></SPAN></FONT></P>
    <P><B><FONT face="Times New Roman" color=navy size=3><SPAN 
    style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: navy">EC POWER 
    A/S</SPAN></FONT></B><o:p></o:p></P>
    <P><st1:PersonName w:st="on"><B><FONT face="Times New Roman" color=navy 
    size=3><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: navy">Steven 
    Lose</SPAN></FONT></B></st1:PersonName><o:p></o:p></P>
    <P><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt">Software Ingeniør<o:p></o:p></SPAN></FONT></P>
    <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Tlf.: 
    +45 87434100<o:p></o:p></SPAN></FONT></P>
    <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Direkte 
    tlf. +45 58286608<o:p></o:p></SPAN></FONT></P>
    <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Email: 
    <A 
    href="blocked::mailto:bsl@ecpower.dk">sl@ecpower.dk</A><o:p></o:p></SPAN></FONT></P>
    <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><A 
    href="http://www.ecpower.dk">www.ecpower.dk</A><o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>