Inline Assembly - Runtime Stack Allocation

M

Mark McIntyre

Microsofts compilers, Borland compilers and all windows compilers
I know of have featured alloca since quite a long time.

a) so what?
b) MSDOS and its derivants are a real small part of computing, and closely
akin to Unix.
alloca exists in the Cray OS, in the Atari OS I used some centuries ago.

Actually I have never seen a serious compiler without it.

I have. Just because your own experience is limited, don't assume it equals
the whole world.
 
E

E. Robert Tisdale

jacob said:
Something that calls itself Mark McIntyre a écrit:


Can't we speak without insults?

Thanks for your understanding.

I find the only thing *really* OFF TOPIC are insults.

Mark McIntyre is a troll.
Please ignore it.
 
I

Irrwahn Grausewitz

No need to, it already exists: comp.lang.c.
I would say that since this newsgroup is not a moderated one,
anyone is free to post what he/she wants.

But be prepared for undefined behaviour if the material is off-topic.
Some people

among them the vast majority of regular posters
will say that "the subject of this group is ISO C",
some others (like me)

a negligible minority of regulars, plus some newbies, plus some
trolls
will say that the subject of this group
is the C language, and not some subset of it as defined
by ISO C.

alloca() belongs to this group, since it is present in almost all
implementations of the C language I know of.

Your knowledge does not define topicality for this group.
I would propose that we avoid insulting each other however...

A good proposal, but, alas, if you don't want to get bitten, do not
tease the monkeys in the first place.

Regards
 
D

Dan Pop

Unix extensions?

Microsofts compilers, Borland compilers and all windows compilers
I know of have featured alloca since quite a long time.

alloca exists in the Cray OS, in the Atari OS I used some centuries ago.

Actually I have never seen a serious compiler without it.

alloca has been a mistake in the first place. See the FAQ or even
Stevens' bible about Unix programming, to find out why. It's not only
the C standard that doesn't support it, the Unix standards don't support
it, either.

It is sheer foolishness to encourage anyone to use this *legacy* function
in new C code.

Dan
 
D

Dan Pop

The purpose of an unmoderated newsgroup is defined by the quasi consensus
of its regulars (i.e. the people who actually provide value to the
newsgroup).
I would say that since this newsgroup is not a moderated one,
anyone is free to post what he/she wants.

And anyone posting what s/he wants should be prepared to face the
consequences of such an act: if you're free to post what you want, I am
equally free to reply to your post in whatever manner *I* want. If you're
rude by posting off-topic questions/answers, I can be equally rude when
replying to your posts: you have no monopoly on rudeness here.
Some people will say that "the subject of this group is ISO C",
some others (like me) will say that the subject of this group
is the C language, and not some subset of it as defined
by ISO C.

It's just that some people's opinion counts more than others'. The more
you contribute to this newsgroup's value, the more your opinion counts
and is respected by the other people.
alloca() belongs to this group, since it is present in almost all
implementations of the C language I know of.

Indeed: newbies should be explained that alloca is a legacy function,
flawed by design, that should NEVER be used in new code. That's all that
it's to be said about it in c.l.c.

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,824
Members
47,369
Latest member
FTMZ

Latest Threads

Top