public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: rob.wj.jansen@philips.com
To: tadams@theone.dnsalias.com
Cc: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] data alignment issues
Date: Thu, 09 Aug 2001 08:19:00 -0000	[thread overview]
Message-ID: <OFCE801A52.313D6F86-ONC1256AA3.0051B52A@diamond.philips.com> (raw)

Trenton,

> Why not send structures if it works?  After all, if I've tested it and

Oops, this is where I hit the send button too fast. What I meant is that you should not do this right away
but first check what happens (as you did). I am used to have a seperate versions of structs for file/network
I/O and internal use, the same program on a different platform will only need the I/O one - plus functions
to populate - to be changed.

Depending on the compiler used (both are gcc I think) you could use a packed structure by using the
"__attribute__ ((packed))" on the struct definition. When you are using lots of chars and shorts this will
really make some impact on the size of the struct.

> I didn't mean I couldn't read a float in hex.  I mean I don't know how
> it's stored in binary.  As in 00001000.10000000 would be 8.5, but I

Thanks, you got me scared for a minute :-) I wrote a MC68000 floating point library in assembly and
this is not something you want to remember too long ...

Regards,

Rob Jansen

Software Engineer
Competence Center Platforms
BU Mobile Communications
Meijhorst 60-10, 6537 KT Nijmegen, The Netherlands
Tel: +31-24-353-6329
Fax: +31-24-353-3613
mailto:Rob.WJ.Jansen@philips.com



             reply	other threads:[~2001-08-09  8:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-09  8:19 rob.wj.jansen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-09  0:56 rob.wj.jansen
2001-08-09  7:44 ` Trenton D. Adams
2001-08-09  7:55   ` Andrew Lunn
2001-08-09  7:59     ` Trenton D. Adams
2001-08-09  8:49     ` Trenton D. Adams
2001-08-09  9:05       ` Andrew Lunn
2001-08-09  9:11         ` Trenton D. Adams
2001-08-09 11:42   ` Grant Edwards
2001-08-08 10:00 Trenton D. Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFCE801A52.313D6F86-ONC1256AA3.0051B52A@diamond.philips.com \
    --to=rob.wj.jansen@philips.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=tadams@theone.dnsalias.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).