473,385 Members | 1,312 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,385 software developers and data experts.

C question about Pointers and assembly

Hello all

I need to understand the concepts of following terminology in
C Language :--
Q1.. what is the near,far pointer mean's ? what is the difference
between the
these pointer and normal Pointer that we have decleared like that
char *ptr;

Q2.. what are the different ways of Inter Process Commnication? and
which is most Efficient

Q3.. How to use function in assembly Language?how to pass the argument
and where to store these argument?
Tarun Sinha
Nov 14 '05 #1
3 1953

"Roop" <ta******@yahoo.co.in> wrote in message
news:e8**************************@posting.google.c om...
Hello all

I need to understand the concepts of following terminology in
C Language :--
Q1.. what is the near,far pointer mean's ? what is the difference
between the
these pointer and normal Pointer that we have decleared like that
char *ptr;
The keywords 'near' and 'far' are not in the C language definition. They are
found in some compilers and denote targets in the same or another memory
segment respectively, the diffrence being one of size (a far pointer needs
to include a segment address). Do not use them, unless you have no choice.
Q2.. what are the different ways of Inter Process Commnication? and
which is most Efficient
Depends on what you are using it for.

The simplest method is communication by means of a pipe. One process writes
to it, another reads. It's simple and robust, but does not offer things like
type-checking.

Another way is shared memory, which needs a mechanism to avoid
race-conditions and *still* does not offer type

Yet another way are various RPC mechanisms, where typechecking *is*
provided, but you need external libs providing the functionality.

Many other options also exist, like opening a network connection, using
shared files, etc.
Q3.. How to use function in assembly Language? how to pass the argument
and where to store these argument?


Compiler specific. For most compilers the sequence is (more or less) as
follows:

* setup the stack frame, push arguments
* call the function
* clear the stack frame, disposing arguments.

Again, this is *not* specified by The Standard.

Nov 14 '05 #2
The following articles might help:

http://www.eventhelix.com/RealtimeMa...ranslation.htm
http://www.eventhelix.com/RealtimeMa...anslation2.htm
http://www.eventhelix.com/RealtimeMa...anslation3.htm

Deepa
--
EventStudio 2.5 - http://www.EventHelix.com/EventStudio
Enter model in plain text;generate sequence diagram in PDF/Word

Nov 14 '05 #3
On 23 Feb 2005 03:40:14 -0800, in comp.lang.c , ta******@yahoo.co.in (Roop)
wrote:
Q1.. what is the near,far pointer mean's ?
near and far pointers are not part of C - they're an (obsolete) extension
used on old MS-DOS platforms to cope with the inadequacies of the hardware
for addressing more than 64K of memory (yes, 64 kilobytes...).
Q2.. what are the different ways of Inter Process Commnication? and
which is most Efficient
this is nothing to do with C. You need to ask in a group specialising in
the OS you're using as its OS specific.
Q3.. How to use function in assembly Language?how to pass the argument
and where to store these argument?


Assembly is not part of C .The answer to Q2 applies here also.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 14 '05 #4

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

Similar topics

388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
19
by: s.subbarayan | last post by:
Dear all, I had this following doubt,while java is able to carryon with out pointers why C language cant be modified to remove pointer?Hows java able to do this with out pointers? I jus plead...
24
by: venkatesh | last post by:
hai, any can tell what is the advantge of using pointers?any increase in speed or execution time? if you know please tell what are the real time applications of data structure? thanks in...
5
by: Dinesh Kumar | last post by:
Hi all I am using VB.NET for a Connector dll in Delphi client and some webservice . can you tell me how to handle pointers in Vb.net which are passed by delphi client as parameters in function...
59
by: MotoK | last post by:
Hi Experts, I've just joined this group and want to know something: Is there something similar to smart pointers in C or something to prevent memory leakages in C programs. Regards MotoK
28
by: Peter Olcott | last post by:
I want to make a generic interface between a scripting language and native code, the native code and the interpreter will both be written in C++. The interpreter will probably be implemented as a...
23
by: TefJlives | last post by:
Hi all, I'm learning a bit about C, and I have a few questions. I'm not trying to insult C or anything with these questions, they're just honestly things I don't get. It seems like pointers...
2
by: Ken Camann | last post by:
Hello! I am having trouble understanding certain aspects of restrict qualified pointers. I understand what they are in the simplest terms, but I want to get high performance and portability out...
1
by: Peter | last post by:
1) We create an assembly with Managed Extensions for C++ named some_name.dll. This assembly has source code like the following Byte * some_method() // a method returning a pointer, defined...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.