Pointers and Portability230 (9/16/2009 4:32:44 PM) comp.lang.c Given that the standard guarantees that all pointers to struct are the same size and representation, and that the same is true for all function pointers, is this snippet of (contrived) code portable? typedef s... REH
Volatile and code reordering227 (3/20/2009 3:24:19 PM) comp.lang.c I believe the consensus of this group is that volatile does not protect against code reordering. But I am not convinced. The standard says that "accesses to volatile objects are evaluated strictly according to ... REH
std namespace #21330 (2/6/2009 2:28:20 PM) comp.lang.c++ This is probably a dumb question, but... I have a code file in which I cannot use a using directive to pull in std (because it conflicts with a library I have to pull in). So, how to I handle names that can be... REH
volatile vs volatile_components432 (11/5/2008 3:00:01 PM) comp.lang.ada Is there a difference between defining an array with pragma volatile vs volatile_components? The standard says that if the object is volatile, its components are volatile. So, if the object is defined as having... REH
conversion syntax2325 (10/8/2008 2:29:57 PM) comp.lang.c++ It it permissible to use the constructor style cast with primitives such as "unsigned long"? One of my compilers accepts this syntax, the other does not. The failing one chokes on the fact that the type is not ... REH
set of pointers1729 (2/26/2008 3:31:53 PM) comp.lang.c++ Is it well defined to use a std::set of pointers? I ask because of the restrictions on using relational operators with pointers. Does a set of pointers suffer from the same restrictions, or does the standard ... REH
Compiler Bug1230 (12/4/2007 9:58:06 PM) comp.lang.ada I have an issue that my compiler vendor is trying to tell me is not a bug. I have two functions. They both have a local variable of the same name. One calls the other (which is inlined). The compiler treats... REH
object lifetime442 (7/19/2007 4:02:42 PM) comp.lang.c++ I've been trying to better understand the subtle rules for object lifetime. The standard says that pointers to the memory of a dynamically allocated object may be used in limited ways after the object's destru... REH
Placement new and explicit destruction821 (7/16/2007 9:32:09 PM) comp.lang.c++ This curiosity popped into my head on the way to work today. I wouldn't actually do this, but just wondering. Is the following defined behavior? #include class T { }; int main() { T* p = new T(); ... REH
protected member #2625 (5/19/2007 2:32:12 PM) comp.lang.c++ Can someone please tell me what is wrong with this snippet of code? GCC is telling me that "foo2 is protected within this context" (that I cannot use it with BBB). class AAA { protected: virtual int foo2... REH
Objective C blocks3441 (9/10/2009 6:33:58 PM) comp.lang.c Have you guys checked this out? http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 It describes a change to Objective C made by Apple to support anonymous functions in C. The syntax is actuall... beej(444)
fpurge/fflush2735 (9/15/2009 3:23:57 PM) comp.lang.c i use gcc in ubuntu. My problem is that, when i use getchar() twice to read a single character each time, it doesn't stop up and asks for a new character at second time. The two codes i use(fflush/fpurge) is: ... anders.refslund(9)
Pointers and Portability230 (9/16/2009 4:32:44 PM) comp.lang.c Given that the standard guarantees that all pointers to struct are the same size and representation, and that the same is true for all function pointers, is this snippet of (contrived) code portable? typedef s... spamjunk(312)
Change in C6732 (9/16/2009 11:27:10 PM) comp.lang.c In the thread "When will C have an object model?", I found a message from Mr Heathfield that warrants a deeper discussion. That thread was (for a change) an interesting one. Richard Heathfield a �crit : > >... jacob24(973)
single producer, single consumer4142 (10/6/2009 2:00:23 PM) comp.lang.c++ Here is some code I came up with for a lock free single producer single consumer algorithm. I have done some tests using GCC with -O3 optimizations and all seems well. I would like some constructive criticism... goodfella005(16)
signal handling and (structured) exception handling3636 (10/9/2009 12:18:39 AM) comp.lang.c++ I'm a little bit at loss, why the new C++ standard (C++0x) does not include something like Windows structured exception handling. I certainly prefer a C++ Exception to a signal, as the signal only gives you the... ExcessPhase(36)
subroutine stack and C machine model12841 (10/12/2009 2:13:47 AM) comp.lang.c I'm looking and talking about a lot of C that is new to me this weekend. Does the abstract machine that is described in the standard have a subroutine stack? I've heard before that one can imagine things as a... merrill(193)
why gcc can not recognize ^M451 (10/20/2009 4:18:50 PM) comp.lang.c why gcc can not recognize ^M? but cc of SunOS 5.8 can accept it without error . -bash-3.00$ gcc a.c -o a a.c: In function 'main': a.c:4: error: missing terminating " character a.c:5: error: missing terminating... zhangyefei.yefei(11)
Beginner's guide to MinGW?60187 (3/9/2010 9:51:53 PM) comp.lang.c Folks,
I know this isn't a C-language related question, but before I get into C, I
have to have a compiler.
In fact, I have been using DJGPP for many years, but I have recently
upgraded to a 64-bit CPU... MikeC
Help reading performance counters235 (4/5/2010 1:15:26 PM) comp.os.vxworks Hello, Does any body have any information on how to read performance monitoring counters for the intel processors in vxworks. I found out from the architecture supplement that we can use the functions pentiumP... dakshina.dasari(11)