| Subject: | Re: while trying to learn pack |
|---|---|
| From: | rob.dixon@xxxxxxx (Rob Dixon) |
| Date: | Fri, 25 Jul 2008 23:46:55 +0100 |
| Newsgroups: | perl.beginners |
Richard Lee wrote: > > I am begining to read bit of low level(assembly) book to just gain some > knoweldge on inner workings of memory. > > My quesiton is, if machine is 32 bit, even if it's accessing string 'A', > it will have to fetch 32 bit (instead of 8 bit that requires to make > that letter A ) ? > > I know this is not a mailing list for this but i figure since it's > closely related to pack, i thought someone would clarify for me. > > I am reading "step by step assembly language"... I am not sure i will > read the whole thing but i just want to get better inner working of > memory as my c book didn't do enough justice. It is the addressing that is 32-bit, not the data. Assembly languages will generally have instructions like - move byte - move word - move longword - move quadword and so on. The main difference between machine architecture is the order in which bytes appear in multi-byte binary values. Most have the least-significant byte at the lowest address, but Motorola processors and a few others have the order reversed. You will see provision for the different ordering in the formats available in a call to pack. HTH, Rob |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: XS, Rob Dixon |
|---|---|
| Next by Date: | Re: while trying to learn pack, John W. Krahn |
| Previous by Thread: | while trying to learn pack, Richard Lee |
| Next by Thread: | Re: while trying to learn pack, John W. Krahn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |