473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

What is the meaning of the term open coded in the following extract

I was looking into the following page
http://gcc.gnu.org/onlinedocs/gcc/Long-Long.html
Here there is a term open-coded , why to ?

And I saw the following definition for long long
5.8 Double-Word Integers

ISO C99 supports data types for integers that are at least 64 bits
wide, and as an extension GCC supports them in C89 mode and in C++.
Simply write long long int for a signed integer, or unsigned long long
int for an unsigned integer. To make an integer constant of type long
long int, add the suffix `LL' to the integer. To make an integer
constant of type unsigned long long int, add the suffix `ULL' to the
integer.

You can use these types in arithmetic like any other integer types.
Addition, subtraction, and bitwise boolean operations on these types
are open-coded on all types of machines. Multiplication is open-coded
if the machine supports fullword-to-doubleword a widening multiply
instruction. Division and shifts are open-coded only on machines that
provide special support. The operations that are not open-coded use
special library routines that come with GCC.

There may be pitfalls when you use long long types for function
arguments, unless you declare function prototypes. If a function
expects type int for its argument, and you pass a value of type long
long int, confusion will result because the caller and the subroutine
will disagree about the number of bytes for the argument. Likewise, if
the function expects long long int and you pass int. The best way to
avoid such problems is to use prototypes.

Oct 3 '07 #1
2 2266
hi Chris,
When you say build-in builds checking, You mean built in builds
checking.
Is that correct? Look at your comments below

>That is, if something is open-coded, there is no actual function
call made, just equivilent code dropped into place; close-coded
results in a call to -some- function.
In compiler circles, the phrase "open coded" is even more general
than that. For instance, some machines have a fancy instruction
to do several steps of some computation, such as a POLY instruction
to calculate polynomials, or an INDEX instruction to use array
subscripts (sometimes with build-in builds-checking).

Oct 5 '07 #2
pa********@hotmail.com wrote:
hi Chris,
When you say build-in builds checking, You mean built in builds
checking.
Is that correct? Look at your comments below
I may be wrong but I think Chris meant to write "built-in bounds-checking."

Walter Roberson wrote:
>>That is, if something is open-coded, there is no actual function
call made, just equivilent code dropped into place; close-coded
results in a call to -some- function.
Chris Torek wrote:
In compiler circles, the phrase "open coded" is even more general
than that. For instance, some machines have a fancy instruction
to do several steps of some computation, such as a POLY instruction
to calculate polynomials, or an INDEX instruction to use array
subscripts (sometimes with build-in builds-checking).
Oct 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Watson | last post by:
I am trying to build Python 2.3.3 on AIX. I believe that we are using gcc 2.95.3, but later in the ./configure output, it appears to say that gcc is not being used. Does this suggest a real...
4
by: Ken Fine | last post by:
I'm looking to find or create an ASP script that will take a string, examine it for a search term, and if it finds the search term in the string, return the highlighted search term along with the...
39
by: Holly | last post by:
I'm trying to validate my code and I can't figure out what kind of doctype I have. The validator can't tell me anything because it can't move beyond the doctype declaration. ...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
100
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
58
by: Larry David | last post by:
Ok, first of all, let's get the obvious stuff out of the way. I'm an idiot. So please indulge me for a moment. Consider it an act of "community service".... What does "64bit" mean to your friendly...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
12
by: TC | last post by:
I'm trying to figure out what the "Friend" keyword does. I know it specifies that "elements are accessible from within the same assembly", but that doesn't help because I don't know what an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.