Hi

I have a little C-program and when I run I discover alot of page fault?!
How can I improve my C program to have it faster?

Pare it down to a smaller memory size AND/OR enlarge the size of the page, if possible.

Without seeing the code, it's impossible to say more.

As Adak said - without the code, there isn't much we can tell you. Usually these sort of problems are of the Homer Simpson variety - Doh! Head Slap! Once you see what is the issue... :-)

May be to improve my C program to have it faster is

• Fast code (option –O or –O2 or –O3…) of the compiler (optimizing code for
speed)
• Or, -Os, to have small code (cache effect) (like on x86 cpu from VIA)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.