473,831 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

stack

jt
hello everyone..

int fun()
{
/* anything */
}
int main(void)
{
fun();
}

in this program, when the control is transferred to function fun()..
the return address is pushed to the stack..
Is it possible to access this value..??
Aug 3 '08
62 2901
In article <g7**********@r egistered.motza rella.org>,
Richard <rg****@gmail.c omwrote:
>ro******@ibd.n rc-cnrc.gc.ca (Walter Roberson) writes:
>In article <g7**********@r egistered.motza rella.org>,
Richard <rg****@gmail.c omwrote:
>>>Richard Heathfield <rj*@see.sig.in validwrites:
>>>Are you related to Robert Mugabe by any chance?
>In my opinion, that was a completely unnecessary and extreme insult.
>Get off your high horse. It was a quip.
Regardless of what you might have -thought- you were posting, what
you *did* post was (in my opinion) a distinct insult, not a quip.
Personally, I don't believe you intended it as humour.

>Heathfield trots out the vote thing time after time. The only people
interested enough were the usual c.l.c clique. It proved nothing.
If you re-examine the postings from that time, I believe you will
find that a large number of people contributed, including a number
that do not contribute very often. It was -not- "the usual c.l.c clique".

Your argument is treading close to the old claim of there being a
"silent majority" that support your position but whom didn't speak up.

If, hypothetically, the strict-topicality stance is what is desired
by the majority of readers, what evidence would you require to
be satisfied that that was the case? What evidence would
be you accept as "proving" something?
--
"Every intellectual product must be judged from the point of view
of the age and the people in which it was produced."
-- Walter Horatio Pater
Aug 5 '08 #51
Walter Roberson wrote:
In article <g7**********@r egistered.motza rella.org>,
Richard <rg****@gmail.c omwrote:
Get off your high horse. It was a quip.

Regardless of what you might have -thought- you were posting, what
you did post was (in my opinion) a distinct insult, not a quip.
Personally, I don't believe you intended it as humour.
Trolls, feed, don't, please, yadda, yadda.


Brian
Aug 5 '08 #52
Walter Roberson said:
In article <g7**********@r egistered.motza rella.org>,
Richard <rg****@gmail.c omwrote:
<snip>
>>Heathfield trots out the vote thing time after time. The only people
interested enough were the usual c.l.c clique. It proved nothing.

If you re-examine the postings from that time, I believe you will
find that a large number of people contributed, including a number
that do not contribute very often. It was -not- "the usual c.l.c clique".
Right, it wasn't. And several people (including myself) did express a view
that was not in accordance with the majority view. Richard NoSurname Riley
expressed a view in that thread, however, and so either he's mistaken in
his belief that the only ones interested were what he calls the clc
clique, or he believes that he's part of that clique. Either way, during
that debate he expressed an interest in topicality that was not
significantly more liberal than my own view.
Your argument is treading close to the old claim of there being a
"silent majority" that support your position but whom didn't speak up.
"The lurkers support me in email" is worth a Web search - sung to the tune
of "My bonny lies over the ocean".
If, hypothetically, the strict-topicality stance is what is desired
by the majority of readers, what evidence would you require to
be satisfied that that was the case? What evidence would
be you accept as "proving" something?
It is clear that no amount of evidence will convince him, because his
position is based not on logic but on a negative emotional reaction to the
posting styles of some of the people here - hence his pointlessly contrary
and vehemently held positions on so many issues.

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Aug 5 '08 #53
CBFalconer <cb********@yah oo.comwrites:
Harold Aptroot wrote:
>"CBFalconer " <cb********@yah oo.comwrote in message
>>Harold Aptroot wrote:
... snip ...
>>>
On this newsgroup, there are no non-standard compliant ways to
do anything. Anything of that nature is off=topic, and may be
found on specialized news-groups dealing with the authors system.

You mean to say that any solution that requires non-standard
compliant code temporarily ceases to exist when talking on this
NG and everyone trying to predend they Do exist will be flamed
for OT-talk? That seems to be happening anyhow

You've got it.
MisterE's reply clearly implied that it cannot be done at all. Apart
from being factually incorrect, his reply was off-topic -- unless you
can cite chapter and verse in the ISO C standard to support his
assertion that you can't access a function's return address *even
using non-portable code*.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Aug 5 '08 #54
On 5 Aug 2008 at 18:18, Walter Roberson wrote:
Richard <rg****@gmail.c omwrote:
>>ro******@ibd. nrc-cnrc.gc.ca (Walter Roberson) writes:
>>Richard <rg****@gmail.c omwrote:
Richard Heathfield <rj*@see.sig.in validwrites:
>>>>Are you related to Robert Mugabe by any chance?
>>In my opinion, that was a completely unnecessary and extreme insult.
>>Get off your high horse. It was a quip.

Regardless of what you might have -thought- you were posting, what
you *did* post was (in my opinion) a distinct insult, not a quip.
Personally, I don't believe you intended it as humour.
When humor cuts close to the bone, there's a fine line between being
funny and being all too true.

It's clear that there are definite parallels: the self-belief in their
unutterable correctness, as well as the nasty methods they use to attack
their enemies - Mugabe phsyically, Heathfield through a continued
undermining of the reputation of his "adversarie s" (i.e. those who dare
to disagree with him).
>>Heathfield trots out the vote thing time after time. The only people
interested enough were the usual c.l.c clique. It proved nothing.

If you re-examine the postings from that time, I believe you will
find that a large number of people contributed, including a number
that do not contribute very often. It was -not- "the usual c.l.c clique".
By your estimation, how many lurkers does this group have for each
regular poster? What, therefore, was the percentage turnout at this
"election" in which Heathfield (like Mugabe) was judge, jury and the
only possible victor?
Your argument is treading close to the old claim of there being a
"silent majority" that support your position but whom didn't speak up.
No less true for being old.
If, hypothetically, the strict-topicality stance is what is desired
by the majority of readers, what evidence would you require to
be satisfied that that was the case? What evidence would
be you accept as "proving" something?
It's impossible to "prove" this either way, just as it's impossible to
say whether the number of babies born in Swaziland yesterday was even
or odd - we have no way of collecting the data.

Aug 5 '08 #55
On 5 Aug 2008 at 19:37, Default User wrote:
Trolls, feed, don't, please, yadda, yadda.
Screw, go, yourself, please, yadda, yadda.

Aug 5 '08 #56
Walter Roberson wrote:
Richard <rg****@gmail.c omwrote:
>ro******@ibd.nr c-cnrc.gc.ca (Walter Roberson) writes:
>>Richard <rg****@gmail.c omwrote:
.... snip ...
>>>
Are you related to Robert Mugabe by any chance?

In my opinion, that was a completely unnecessary and extreme
insult.

Get off your high horse. It was a quip.

Regardless of what you might have -thought- you were posting,
what you *did* post was (in my opinion) a distinct insult, not
a quip. Personally, I don't believe you intended it as humour.
I suggest plonking "Richard <rg****@gmail.c om>". Then you will
only see his nonsense in others quotes.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Aug 5 '08 #57
On Tue, 05 Aug 2008 01:52:26 -0700, Nick Keighley wrote:
On 4 Aug, 23:25, Harald van Dijk <true...@gmail. comwrote:
>On Mon, 04 Aug 2008 17:42:31 -0400, CBFalconer wrote:
Harold Aptroot wrote:
"MisterE" <Mist...@nimga. comwrote in message
Is it possible to access [the return address] value..??
>>No.
>Of course it is. The OP did not request a standard compliant way to
do it after all
On this newsgroup, there are no non-standard compliant ways to do
anything. Anything of that nature is off=topic,

Please don't use topicality as an excuse or defence for lies.

its not a lie. It's a fact. Your statement is incorrect.
My statement?
There *is* no
standard way to do this and since the topic of this NG is standard C
there is no way to do it that is topical to this NG.
"There is no way to do it that is topical to this NG" and "There is no way
to do it" are very different. The former I have no problem with. The
latter I do, particularly because it suggests that there are no relevant
points to the question outside of the bounds of this group's topicality.
In other words, given "no" as an answer, there is no reason to try asking
on other groups.
Though I must admit
I'd have suggested trying another NG.
That's what I'm after.
Aug 5 '08 #58
On Tue, 05 Aug 2008 15:47:57 +0000, Richard Heathfield wrote:
>
It's considerably less than a year ago that we discussed topicality at some
length. Everyone had a chance to have their say, and many people availed
themselves of that opportunity.
MID please?
Aug 6 '08 #59
Anand Hariharan said:
On Tue, 05 Aug 2008 15:47:57 +0000, Richard Heathfield wrote:
>>
It's considerably less than a year ago that we discussed topicality at
some length. Everyone had a chance to have their say, and many people
availed themselves of that opportunity.

MID please?
Gladly.

<Q4************ *************** ***@bt.com(post ed on 29 September 2007)
begins a thread of over 200 articles, most of which are from people whose
views on topicality are rather more strict than mine.

<ac************ *************** ***@bt.com(post ed a few days later)
contains a brief tabulated summary of views expressed in the earlier
thread. You will be glad to hear that it has far fewer followups than the
first thread.

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Aug 6 '08 #60

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

Similar topics

15
7750
by: Andrew | last post by:
Last night I was reading about implementing my own stack. The example given pushes items on and off the stack at the start and end of each procedure (ie. in a std module). What's not so clear is how this would work with class objects. In this case do you have to push the object on the stack at the start of every public procedure etc. in the class and pop it off at the end? I can't see how else you can know which object is active - or...
14
30107
by: Kevin Grigorenko | last post by:
Hello, I couldn't find an obvious answer to this in the FAQ. My basic question, is: Is there any difference in allocating on the heap versus the stack? If heap or stack implementation is not part of the standard, then just disregard this question. Here's some questions I'm confused about, and if you can add anything else, please do so! Is the stack limited for each program?
4
2626
by: Chris Mabee | last post by:
Hello all, and Merry Christmas, I'm having a problem understanding an example of an array based implementation of a stack in a textbook of mine. The code in question is written below. The syntax is directly as in the book, except for where I added the comments at the lines I wanted to refer to or to skip sections of code. template <class Element_Type> class Stack {
4
3637
by: anonymous | last post by:
Thanks your reply. The article I read is from www.hakin9.org/en/attachments/stackoverflow_en.pdf. And you're right. I don't know it very clearly. And that's why I want to understand it; for it's useful to help me to solve some basic problem which I may not perceive before. I appreciate your help, sincerely.
8
2101
by: LedZep | last post by:
What up everyone, I have to write a program that uses a stack to determine whether a string is a palindrome (a string that is spelled identically backward and forward). The program has to ignore spaces, case sensitivity and punctuation. I need three text boxes. The first will be for input of the string. The second will display the string when the "check" button is clicked and the result of the analysis (string is a palindrome or is...
4
2152
by: alisaee | last post by:
plz check what i have made wrong what is requierd her is to creat class queue and class stack and run the push,pop operation . #include<iostream.h> #include<conio.h> #include<stdio.h> class stack { public:
16
4454
by: sarathy | last post by:
Hi all, I need a few clarifications regarding memory allocaion in C++. I apologize for the lengthy explanation. 1. In C++, Objects are allocated in heap. What does heap refer to? Is it an area in RAM/Memory or does it refer to a data structure being used for storing objects. 2. In C++, functions and its local variables go in stack. If local variables that are primitives go in stack, it is OK. But what
24
6593
by: John | last post by:
I know this is a very fundamental question. I am still quite confused if the program call stack stack should always grows upwards from the bottom, or the opposite, or doesn't matter?? That means the stack pointer should go upwards when there are "push" operations, and stack pointer should go downards when there are "pop" operations?? If this is the case, the address should go upwards (increasing) or downards (decreasing) then? i.e....
1
4224
by: alfie27 | last post by:
I currently have a working program that is a stack that stores integers. Now i have to convert it to store strings instead of integers. I have been working on this for hours and just keep getting errors of all kinds. I have decided to start from scratch. Any suggestions someone can give me would be greatly appreciated!! Here is the current code: #include <iostream> using std::cout; using std::cin; #include <cstring> using std::strcpy;
11
1788
by: tom | last post by:
Hi! Im new to Python and doing exercise found from internet. It is supposed to evaluate expression given with postfix operator using Stack() class. class Stack: def __init__(self): self.items = def push(self, item): self.items.append(item)
0
10494
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10208
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7748
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5620
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3964
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.