10-07-2013
Byte means 8 bits, even when memory accesses align in 128-bit chunks, even for machines that use native 16-bit UNICODE instead of ASCII.
There's probably a handful of PDP-8's still running in the world, but we don't have to worry about building new programming languages for them, so their 12-bit 'bytes' do not bother us.
Cray also experimented with weird byte-sizes. Some Cray machines had minimum sizes of 32-bits. Porting programs to them was very difficult, so I don't know of any more modern architecture which does the same. Byte access is inefficient in many modern architectures but still possible.
Last edited by Corona688; 10-07-2013 at 01:05 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this?
Your help is greatly appreciated!!
Best Regards,
Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies
2. Shell Programming and Scripting
hi there,
can somebody give me a definition for daemons, or example what are they !!
and what the use for?
i've done some research and all what i found is /etc/...
or /usr/bin/...
and i haven't quietly got the concept.
any ideas !!
Thanks. (5 Replies)
Discussion started by: new2Linux
5 Replies
3. UNIX for Dummies Questions & Answers
Could someone please direct me to a link that gives the definitions for each of the letters from the results of the $- environment variable? It would be nice to know what shell options each of the letters represents, but I am specifically looking for the shell option for 'c' (lowercase c). Thank... (12 Replies)
Discussion started by: sszd
12 Replies
4. Shell Programming and Scripting
While running script I am getting an error like
Few lines in data are not being processed.
After googling it I came to know that adding such line would give some memory to it
ini_set("memory_limit","64M");
my input file size is 1 GB.
Is that memory limit is based on RAM we have on... (1 Reply)
Discussion started by: elamurugu
1 Replies
5. Programming
Hi,
If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script.
dd bs=1024 count=3 if=/src of=/dest
But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help. (3 Replies)
Discussion started by: royalibrahim
3 Replies
6. Fedora
Hi Folks,
I have a script called program.sh which was written by someone. I am supposed to edit it for my necessities.
There is a line in the script that is as follows
if ]; then
echo -e "Option limit should be positive number and less than 1. Program aborts!"
exit 1
... (27 Replies)
Discussion started by: jacobs.smith
27 Replies
7. UNIX for Dummies Questions & Answers
Hello guys. I really hope someone will help me with this one..
So, I have to write this script who:
- creates a file home/student/vmdisk of 10 mb
- formats that file to ext3
- mounts that partition to /mnt/partition
- creates a file /mnt/partition/data. In this file, there will... (1 Reply)
Discussion started by: razolo13
1 Replies
8. Shell Programming and Scripting
hello,
suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly.
example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly.
enter your name:
donald duck (this is of 11 bytes)
expected is as below - display 11... (3 Replies)
Discussion started by: shravan.300
3 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I'm bit new to the advanced bash shell scripting.
When I'm looking at some of the existing code in my organization, got confused with a few variable definings.
For ex:
var1={1:-30}
var2="abc def ghi"
var3={xyz:-$var2}
In above, 1st and last lines are confusing me.... (4 Replies)
Discussion started by: raghu.iv85
4 Replies
10. Programming
I have many headers with huge amount of structures in them, typical one looks like this:
$ cat a.h
struct Rec1 {
int f1;
int f2;
};
struct Rec2 {
char r1;
char r2;
};
struct Rec3 {
int f1;
float k1;
float ... (6 Replies)
Discussion started by: migurus
6 Replies
LEARN ABOUT REDHAT
xmcvtxmstringtobytestream
XmCvtXmStringToByteStream(library call) XmCvtXmStringToByteStream(library call)
NAME
XmCvtXmStringToByteStream -- A compound string function that converts a compound string to a Byte Stream format
SYNOPSIS
#include <Xm/Xm.h>
unsigned int XmCvtXmStringToByteStream(
XmString string,
unsigned char **prop_return);
DESCRIPTION
XmCvtXmStringToByteStream converts a compound string to a string of bytes representing the compound string in Byte Stream format. This
routine is typically used by the source of a data transfer operation to produce a Byte Stream representation for transferring a compound
string to a destination.
If prop_return is not NULL, this function creates a string of characters in Byte Stream format and returns it in prop_return. The function
also returns the number of bytes in prop_return. If prop_return is NULL, the function does not return the Byte Stream format string, but
it does calculate and return the number of bytes that would appear in the Byte Stream format string.
string Specifies a compound string to be converted to Byte Stream format
prop_return
Specifies a pointer to a string in Byte Stream format that is created and returned by this function. If prop_return is NULL, no
Byte Stream format string is returned. When a Byte Stream format string is returned, the function allocates space to hold it.
The application is responsible for managing this allocated space. The application can recover the allocated space by calling
XtFree.
RETURN
Returns the number of bytes in the Byte Stream representation (whether or not the Byte Stream representation is returned).
RELATED
XmString(3) and XmCvtByteStreamToXmString(3).
XmCvtXmStringToByteStream(library call)