11-26-2001
Any decent driver should include instructions on how to compile/install it. Check the documentation that came with it. If it didnt include documentation, check the vendor website for instructions.
In general you compile a program with:
gcc -o output_file yourcode.c
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
im thinking of getting unix but i have no idea where to start I know that its an OS similar to linux but what hardware does in run on? i've heard of solaris but im not quit sure what it is
thankxs (3 Replies)
Discussion started by: ninja
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a file, that is delimited by :: and the purpose of this file is none of your business. ;)
There are about 65000 lines in this file, and there are lines that I would like to remove. About 45000 of them.
Is there some sort of commands that I can run, to remove word(s) from this... (4 Replies)
Discussion started by: th3gh05t
4 Replies
3. Shell Programming and Scripting
Hello,
I have text file while looks this
test1
test2
test3
test4
test5
test6
and if I want to parse it and make new file which would like this
test1 test2
test3 test4
test5 test6
How can I do this in korn shell script
Thanks (9 Replies)
Discussion started by: peeyush_23
9 Replies
4. UNIX for Dummies Questions & Answers
sorry if im not asking inthe right spot but, how do you turn the beeping off every time you hit a key onthe keyboard. I tried the click -n but it told me it didnt recognize click
any help would be greatly appreciated ( the beeping is not going over well in the surrounding cubicles)
thank you... (4 Replies)
Discussion started by: Split100
4 Replies
5. UNIX for Dummies Questions & Answers
I am taking a db classes toward oracle 10g. I am taking unix as well . I need to know what is the best option for os . should I use linux fedora. or get a sun box and start learning from there. Thanks (6 Replies)
Discussion started by: xzyan
6 Replies
6. UNIX for Dummies Questions & Answers
What is the best way to learn UNIX on the web, with out buying books? any link would be much help.
Thank you in advance, L (1 Reply)
Discussion started by: lsoria1
1 Replies
7. Programming
Dear all,
I have a question related to parallel programing and if you can give me some hints on how to deal with it, it would be really great.
I would like to run a small application on a supercompter of 128 CPUs. Unfortunately, on this machine only jobs which require 32 CPUs are allowed to... (1 Reply)
Discussion started by: Eduard
1 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone,
Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware.
I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies
9. Shell Programming and Scripting
Hello everyone,
I am having to do a lot of perl scripting these days and I am learning a lot.
I have this problem
I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files..
there is folder1\folder2\*.gz
and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I am sure this is very simple but I cant quite get it.
I am trying to search textfile1.txt for a string then take the results of the search and append the result to textfile3.txt
So far I have used
$ find file1.txt -exec grep "string i am looking for" '{}' \; -print
this... (2 Replies)
Discussion started by: radgator
2 Replies
LEARN ABOUT NETBSD
__builtin_prefetch
__BUILTIN_PREFETCH(3) BSD Library Functions Manual __BUILTIN_PREFETCH(3)
NAME
__builtin_prefetch -- GNU extension to prefetch memory
SYNOPSIS
void
__builtin_prefetch(const void *addr, ...);
DESCRIPTION
The __builtin_prefetch() function prefetches memory from addr. The rationale is to minimize cache-miss latency by trying to move data into a
cache before accessing the data. Possible use cases include frequently called sections of code in which it is known that the data in a given
address is likely to be accessed soon.
In addition to addr, there are two optional stdarg(3) arguments, rw and locality. The value of the latter should be a compile-time constant
integer between 0 and 3. The higher the value, the higher the temporal locality in the data. When locality is 0, it is assumed that there
is little or no temporal locality in the data; after access, it is not necessary to leave the data in the cache. The default value is 3.
The value of rw is either 0 or 1, corresponding with read and write prefetch, respectively. The default value of rw is 0. Also rw must be a
compile-time constant integer.
The __builtin_prefetch() function translates into prefetch instructions only if the architecture has support for these. If there is no sup-
port, addr is evaluated only if it includes side effects, although no warnings are issued by gcc(1).
EXAMPLES
The following optimization appears in the heavily used cpu_in_cksum() function that calculates checksums for the inet(4) headers:
while (mlen >= 32) {
__builtin_prefetch(data + 32);
partial += *(uint16_t *)data;
partial += *(uint16_t *)(data + 2);
partial += *(uint16_t *)(data + 4);
...
partial += *(uint16_t *)(data + 28);
partial += *(uint16_t *)(data + 30);
data += 32;
mlen -= 32;
...
SEE ALSO
gcc(1), attribute(3)
Ulrich Drepper, What Every Programmer Should Know About Memory, http://www.akkadia.org/drepper/cpumemory.pdf, November 21, 2007.
CAVEATS
This is a non-standard, compiler-specific extension.
BSD
December 22, 2010 BSD