We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,913 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Page fault in my C program?

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?

3
Contributors
3
Replies
1 Week
Discussion Span
2 Months Ago
Last Updated
26
Views
tony75
Junior Poster
155 posts since Mar 2011
Reputation Points: 20
Solved Threads: 4
Skill Endorsements: 0

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.

Adak
Posting Virtuoso
1,640 posts since Jun 2008
Reputation Points: 456
Solved Threads: 196
Skill Endorsements: 7

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... :-)

rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 52

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)

tony75
Junior Poster
155 posts since Mar 2011
Reputation Points: 20
Solved Threads: 4
Skill Endorsements: 0

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0770 seconds using 2.71MB