gnu.gcc.help
  Home FAQ Contact Sign in
gnu.gcc.help only
 
Advanced search
December 2008
motuwethfrsasuw
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
gnu.gcc.help Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Linking issue for sched.h         


Author: sveiki
Date: Dec 25, 2008 13:18

I'm doing some thread affinity experiments with a number of linux
boxes by way of explicitly binding threads using the "sched_setaffinity
(pid_t, unsigned int, cpu_set_t *)" function from sched.h. I use a
wrapper function to call either this function or the Solaris
equivalent (so I can use the same sources on an UltraSparc machine I
work with).

This is the use in code:

int thread_bind (int proc_id, int max_occupancy) {
#if defined(__solaris__)
return processor_bind(P_LWPID, P_MYID, proc_id, NULL);
#elif defined(__linux__)
unsigned int mask;
mask = 1 << proc_id;
return sched_setaffinity(0, max_occupancy, (cpu_set_t *)
&mask);
#else
return 0;
#endif
}
Show full article (1.67Kb)
2 Comments
  Canada lesbian couple         


Author: margaritorica
Date: Dec 25, 2008 04:36

couple de lesbienne cherche sex occasionnelle femme seulement
http://canada-lesbi.blogbugs.org/
no comments
  function arguments         


Author: the.cool.dude.man
Date: Dec 25, 2008 00:56

why doesn't gcc throw an error for the following program.
something which is very obvious passing fewer arguments to function
foo ().
if the function definition or declaration was before the call, gcc
will throw error as usual.
but if the definition or declaration is after the call, then it will
not throw any error.
Is there any option in gcc to strictly check the no.of arguments
passed to a function,
irrespective of where the function definition or declaration is.
Show full article (0.69Kb)
4 Comments
  Lifestyle - new career lifestyle flexible lifestyle lifestyle active lifestyle job lifestyle work lifestyle healthy lifestyle personal lifestyle sport lifestyle rich lifestyle cheap lifestyle quality lifestyle in Asia Thailand Thai Cambodia Khmer Vietnam         


Author: LanguageCorps
Date: Sep 22, 2008 05:42

Lifestyle - new career lifestyle flexible lifestyle active lifestyle job lifestyle work lifestyle healthy lifestyle personal lifestyle sport lifestyle rich lifestyle cheap lifestyle quality lifestyle in Asia Thailand Thai Cambodia Khmer Vietnam Vietnamese

Are you a recent graduate or student looking for a job or work in Cambodia, China, Vietnam, Thailand or somewhere else in Asia?

or

US British Expat Network job or work in Cambodia, China, Vietnam, Thailand, Asia
Are you an expat looking for a job or work in Cambodia, China, Vietnam, Thailand or somewhere else in Asia?
Teaching English can be a flexible alternative for expats looking to retire or travel from country to country.

Teach and travel in Asia. TEFL / TESOL training can give you the international skills you need to teach and travel around Asia as well as the world. Teach the English language within cultures and help improve global communication.

TEFL / TESOL training programs, teaching English jobs, work placements, volunteer programs, learn a new language abroad and Travel around Asia.

Jobs teaching English as a second language in Asia, (ELS) jobs. Work live and travel in Cambodia, China, Thailand or Vietnam.

TEACHING ENGLISH JOBS

Lifestyle - new career lifestyle flexible lifestyle active lifestyle job lifestyle work lifestyle healthy lifestyle personal lifestyle sport lifestyle rich lifestyle cheap lifestyle quality lifestyle in Asia Thailand Thai Cambodia Khmer Vietnam Vietnamese - http://www.cambodialanguagecorps.com

CAMBODIA TEACHING JOBS - Pre University

The University anticipates the need for approximately 10 new English language teachers for the start of each semester. Preferred applicants will have a Bachelors Degree and a TEFL / TESOL certificate for a minimum of 120 hours program that included at least 6 hours of observed teaching practice.

CAMBODIA TEACHING ENGLISH JOBS - Pre University

Teaching Institution: Pre University ESL Admissions programs
Show full article (6.31Kb)
no comments
  g++ problem with <features.h> vs "features.h"         


Author: mda
Date: Sep 20, 2008 17:16

When trying to compile a Linux untility and including a private
directory which has a private "features.h" file, g++ picks it up vs
the standard one and causes panic.
How do I tell the compiler not to pick up a std file from the user
path?
no comments
  Why segfault?         


Author: hugoplatzer
Date: Sep 17, 2008 10:03

Why does the following code give a segfault???
#include
#include
#include
void aplint_init(unsigned short* pt)
{
pt=(unsigned short *)calloc(3,2);
pt[0]=1;
pt[1]=0;
}
int main()
{
unsigned short* p;
aplint_init(p);
p[2]=34576;
free(p);
return 0;
}
2 Comments
  configure: error: installation or configuration problem: C compiler cannot create executables.         


Author: nik
Date: Sep 17, 2008 03:59

Hi guys.
I am trying to configure gcc. But getting the problem mentioned below.

-desktop:~$ /home/nitin/gcc-4.2.4/configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking build system type... i686-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
Show full article (0.91Kb)
2 Comments
  One question about "struct _iobuf *(const char *filename, const char *type);"         


Author: linuxer1980
Date: Sep 16, 2008 21:06

I don't understand the grammar in the line 00046 in "gcc-4.3.2\gcc
\testsuite\gcc.c-torture\compile\920428-2.c"
(line 00046) It seems to be a declaration of function, but without a
function name.
00036: extern struct _iobuf {
00037: int _cnt;
00038: char *_ptr;
00039: char *_base;
00040: int _bufsiz;
00041: short _flag;
00042: char _file;
00043: } _iob[];
00044: typedef unsigned long size_t;
00045: typedef char *va_list;
00046: struct _iobuf *(const char *filename, const char *type);
no comments
  Debugging and optimizations         


Author: Stephan Ceram
Date: Sep 16, 2008 14:34

Hi,

I've a question about gcc's symbolic debugging information (like DWARF2)
and compiler optimizations. Should the code be always compiled without
any optimizations, i.e. -O0, to get accurate debug information where
all source code line number are OK or would I also get accurate results
for higher optimization levels? What are you experiences?

Regards,
Stepahn
1 Comment
  Optimization interferes with inline assembly clobber list         


Author: sveiki
Date: Sep 16, 2008 10:25

I'm having a problem with a simulation tool I'm using. The issue
basically relates to the clobber list in an inline assembly line not
behaving as intended.

An example of the problem:
---
int i;

...

for (i = 2; i < 1000; i++) {

if (i %% 2 == 0) {
a[i] = a[i-1] + a[i-2];
}
else {
a[i] = a[i-1] + a[i-2];
}

asm volatile ("..." : ... : ... : "memory", ... );
Show full article (1.82Kb)
no comments
1 2 3 4 5 6 7 8 9