Date: Fri, 09 Apr 1999 09:57:56 +0100 From: Roger Hardiman <roger@cs.strath.ac.uk> To: dick@tar.com, hackers@freebsd.org Subject: cc -pthread and -kthread switches Message-ID: <370DC114.E0A81FDE@cs.strath.ac.uk>
next in thread | raw e-mail | index | archive | help
Hi, What do you think to a new switch for cc? cc has the extra compiler options -pthread and -kthread which invoke the userland pthreads or the kernel threads respectivly. How easy would it be to change this to cc -pthread *New meaning*. It invokes either -uthread or -kthread, depending on a envoronment variable or a setting in a config file (eg /etc/thread_type) cc -uthread use useland threads (what is currently -pthread) cc -kthread use kernel threads I compile pthreaded code on several machines, some uni-processor, some SMP using kthreads and Luoqi's SMP thread patches. It means I could have one makefile, with just the -pthread option, and compile my code on all my machines with the same makefile. Is this even possible? (there is the problem of issuing the -DLINUXTHREAD option alongside -kthread, but perhaps this is already done) Comment please? Bye Roger -- Roger Hardiman Strathclyde Uni Telepresence Research Group, Glasgow, Scotland. http://telepresence.dmem.strath.ac.uk 0141 548 2897 roger@cs.strath.ac.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?370DC114.E0A81FDE>