<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page WordSection1 {margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
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.MsoAcetate {
        FONT-SIZE: 8pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Tahoma","sans-serif"
}
LI.MsoAcetate {
        FONT-SIZE: 8pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Tahoma","sans-serif"
}
DIV.MsoAcetate {
        FONT-SIZE: 8pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Tahoma","sans-serif"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Arial","sans-serif"
}
SPAN.BalloonTextChar {
        FONT-FAMILY: "Tahoma","sans-serif"
}
.MsoChpDefault {
        
}
DIV.WordSection1 {
        
}
</STYLE>
<META content="MSHTML 6.00.2900.6380" name=GENERATOR></HEAD>
<BODY lang=EN-AU vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello Damien</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>First, I'm not sure that how the various data types
are physically stored is part of the study design - at least, I can't see it
anywhere.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Second, one reason for the different storage sizes
is probably historical as much as anything. For example, C was developed on
PDP-11 which was a 16-bit minicomputer, so 2 bytes as basic int storage makes
sense. C++, coming along later as it did, was probably first developed on a
32-bit machine. I wouldn't be surprised if VB.NETs owes its 2-byte integers to
its ancestor quickBASIC, originally written for 8088/86 machines.The other
number types would have a similar heritage.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As for char, 1 byte accomodates ASCII, while 2
bytes accomodates Unicode. I don't know why, but MS was one of the early
adopters of Unicode, possibly because of its flagship product MS Word, so
building chars on 2 bytes would have been a logical step for
them.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The boolean data type is the interesting one.
In principle it only needs one bit, but fetching a single bit from memory can be
very inefficient, depending on how the memory system is designed. That leads to
1 byte storage on older machines since it's more efficient to store a byte than
a bit (0000 0000 or 1111 1111), although I'm not sure how that translates
to 32-bit machines!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Robert T-A</FONT></DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Damien.ATKINSON-BUCK@ivanhoe.com.au
href="mailto:Damien.ATKINSON-BUCK@ivanhoe.com.au">ATKINSON-BUCK, Damien</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sofdev@edulists.com.au
href="mailto:sofdev@edulists.com.au)">Year 12 Software Development Teachers'
Mailing List(sofdev@edulists.com.au)</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 31, 2013 3:42 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Year 12 SofDev] Data Type
Sizes</DIV>
<DIV><BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hi folks,
</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">
I’ve been working through various data dictionaries with my students and the
issue of data type sizes, somebody pointed out a difference between the text
and what VB.NET state, so I decided to do a bit of research into various
languages and see what they store data as. Attached are the results. It’s OK
for SACs as we can base that on the language we’re using, but just wondering
what the official VCAA size might be – and if anyone can explain the reasons
for the difference (I assume it’s due to various compilation methods, but the
brain is too fried to go into too much). Also, anyone out there using the
languages that I have blank fields on that could fill them in?</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Cheers</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Damien</SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN> </P>
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 9pt; COLOR: #880231; FONT-FAMILY: 'Times New Roman','serif'"><BR></SPAN></B><B><SPAN
style="FONT-SIZE: 12pt; COLOR: #82002c; FONT-FAMILY: 'Arial','sans-serif'">Damien</SPAN></B><B><SPAN
style="FONT-SIZE: 9pt; COLOR: #880231; FONT-FAMILY: 'Times New Roman','serif'">
</SPAN></B><B><SPAN
style="FONT-SIZE: 12pt; COLOR: #880231; FONT-FAMILY: 'Arial','sans-serif'">Atkinson-Buck</SPAN></B><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Head
of Learning Area: Technology/Arts</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Times New Roman','serif'">
</SPAN></P>
<TABLE class=MsoNormalTable cellPadding=0 border=0>
<TBODY>
<TR>
<TD
style="PADDING-RIGHT: 36pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">p:</SPAN></B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">
+61 3 9490 3848</SPAN><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN></P></TD>
<TD
style="PADDING-RIGHT: 36pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">e:</SPAN></B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">
<A href="mailto:damien.atkinson-buck@ivanhoe.com.au"><SPAN
style="COLOR: blue">damien.atkinson-buck@ivanhoe.com.au</SPAN></A></SPAN><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN></P></TD></TR>
<TR>
<TD
style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">f:</SPAN></B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">
+61 3 9490 3490</SPAN><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN></P></TD>
<TD
style="PADDING-RIGHT: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; PADDING-TOP: 0.75pt">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">w:</SPAN></B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">
</SPAN><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial','sans-serif'"><A
href="http://www.ivanhoe.com.au"><SPAN
style="COLOR: black">www.ivanhoe.com.au</SPAN></A></SPAN></P></TD></TR></TBODY></TABLE>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><IMG
id=_x0000_i1025 height=105
src="cid:CC6DB8DFD935454E9960B9554C92309B@timmerarends" width=750
border=0></SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><BR></SPAN><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial','sans-serif'">Please consider
the environment before printing this
e-mail.</SPAN></P></DIV><BR><BR><BR><BR>Privacy, Virus and Copyright
Warning<BR><BR>The information contained in this electronic message (e-mail),
and any files transmitted with it:<BR><BR>* is intended for the named
recipients only. If you have received this in error, please advise the sender
and delete it and any copies immediately;<BR>* Any personal information in
this email must be used in accordance with the Privacy Act 1988 and this
always applies even if it has been sent to you in error.<BR>* represents the
views of the sender and does not necessarily represent the views or formal
advice of Ivanhoe Grammar School;<BR>* may be subject to Copyright, so no
further use should be made of it without the author's permission.<BR><BR>The
School does not represent or warrant that the email or any files attached do
not contain errors or are free from computer viruses or other defects nor does
it accept responsibility for any loss or damage resulting directly or
indirectly from the use of the email or any attached files.
<P>
<HR>
<P></P>_______________________________________________<BR>http://www.edulists.com.au
- FAQ, Subscribe, Unsubscribe<BR>IT Software Development Mailing List kindly
supported by<BR>http://www.vcaa.vic.edu.au - Victorian Curriculum and
Assessment Authority
and<BR>http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html
<BR>http://www.vitta.org.au - VITTA Victorian Information Technology
Teachers Association Inc<BR>http://www.swinburne.edu.au/ict/schools -
Swinburne University</BLOCKQUOTE></BODY></HTML>