What is a word and how many bytes are in it?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Binamra
Registered Member
Posts: 67
Joined: Mon Jun 17, 2013 10:42 pm

What is a word and how many bytes are in it?

Post by Binamra »

What is a Word? Half-word? How many bytes are there in one word?
User avatar
Anuj Dhawan
Founder
Posts: 2838
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:

Re: What is a word and how many bytes are in it?

Post by Anuj Dhawan »

In computing, "word" is a term for the natural unit of data used by a particular processor design. The mainframe "was" originally a half-word, full-word and double-word centric system.

Said that - A full-word is four bytes in length, a double-word is eight bytes long and a half-word is two bytes long.

Hope this helps.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Sandy
Registered Member
Posts: 52
Joined: Sat Jun 15, 2013 1:07 pm

Re: What is a word and how many bytes are in it?

Post by Sandy »

So the memory will always "swap" only words and not "bits" of information?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

Re: What is a word and how many bytes are in it?

Post by Robert Sample »

If you are talking about memory swaps (such as paging to / from auxiliary storage), the unit used is a page. And a page is 4096 bytes (4KB or 1024 words).
Binamra
Registered Member
Posts: 67
Joined: Mon Jun 17, 2013 10:42 pm

Re: What is a word and how many bytes are in it?

Post by Binamra »

Thanks Robert (and Sandy). I look at other post of yours Robert - that also helps.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

Re: What is a word and how many bytes are in it?

Post by Robert Sample »

An update to my previous answer: z/OS now supports large frames for handling memory objects in the 64-bit address space (above the bar). Large frames are referenced in 1 megabyte (1,048,576 bytes) increments and are NOT paged with the older 4K pages.
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”