Re: optimization guidelines required for C.

2006-06-30 Thread Shlomi Fish
On Friday 30 June 2006 01:12, Michael Vasiliev wrote:
 On Thursday June 29 2006 23:14, Diego Iastrubni wrote:

 [Isn't your kmail supposed to insert the right quote phrase depending on
 the language you wrote this email in?]

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by
any virus transmitted by this email.
  
   How obvious. With such stupid and embarrassing signatures automatically
   appended to their employees mail, would you believe they could choose
   a less vulnerable operating system?
 
  Which reminds me... wine is still a piece of garbage. I tried on one of
  those viruses a few days ago... nothing.  Well, even if they are
  transmitted, they cant do a thing.

 Yeah, looks like wine is still not up to running the latest in viral
 fashion line. :)  You'll have to run you know what OS in a virtual machine
 to test and dissect the latest virus you got in your mail. I recommend to
 dig the most ancient version you have to go and surprise the little wormy.
 Hours of fun.

 --
 Sincerely Yours,
 Michael Vasiliev

 .. Any resemblance between the above views and those of my employer, my
 terminal, or the view out my window are purely coincidental.  Any
 resemblance between the above and my own views is non-deterministic.  The
 question of the existence of views in the absence of anyone to hold them is
 left as an exercise for the reader.  The question of the existence of the
 reader is left as an exercise for the second god coefficient.  (A
 discussion of
 non-orthogonal, non-integral polytheism is beyond the scope of this
 article.)

Hi Michael!

Is this signature yours? Or did you take it from somewhere?

I'd like to add it to my fortunes files:

http://www.shlomifish.org/Vipe/humour/fortunes/

Regards,

Shlomi Fish

-
Shlomi Fish  [EMAIL PROTECTED]
Homepage:http://www.shlomifish.org/

95% of the programmers consider 95% of the code they did not write, in the
bottom 5%.

To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



optimization guidelines required for C.

2006-06-29 Thread malladi.sankar


Can any one send me the optimizing guidelines in C language for coding ?

Thanking you
Sankar


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread guy keren

On Thu, 29 Jun 2006 [EMAIL PROTECTED] wrote:

 Can any one send me the optimizing guidelines in C language for coding ?

there are no guidelines. you question is like asking for guidelines for
writing stable applications. you should look for a book on the subject.

-- 
guy

For world domination - press 1,
 or dial 0, and please hold, for the creator. -- nob o. dy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread Omer Zak
On Thu, 2006-06-29 at 16:50 +0530, [EMAIL PROTECTED] wrote:
 
 Can any one send me the optimizing guidelines in C language for coding ?
 
 Thanking you
 Sankar

My Latin and Russian are regrettably woefully inadequate for a proper
treatment of your question (according to Marc's principles), so I'm
replying in straight English.

First of all, what do you need to optimize?
- Running time
- RAM footprint
- Cache working set size
- Disk I/O
- Network I/O
- Application startup time
- Perceived GUI response time
- Other

The following assumes that you need to optimize for running time.

If you did not write yet the application:
1. If the data set is small, select low-overhead algorithms.
2. If the data set is large, select algorithms according to their O()
behavior.

If you already wrote the application:
1. Run a profiler on it.
2. Tweak the worst performance bottlenecks found by the profiler.
3. Repeat steps (1),(2) above until the application's running time meets
your requirements.  However, if you have to repeat those steps more than
10 times, then consider buying a stronger processor to run your
application.

To optimize for other criteria, you need to ask more specific questions.
Also, try to ask Google.

--- Omer
-- 
You haven't made an impact on the world before you caused a Debian
release to be named after Snufkin.
My own blog is at http://tddpirate.livejournal.com/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread Shlomi Fish
On Thursday 29 June 2006 14:20, [EMAIL PROTECTED] wrote:
 Can any one send me the optimizing guidelines in C language for coding ?


I don't think there's an official document for that. At least I could not find 
any. See:

1. http://www.mail-archive.com/haifux%40haifux.org/msg02050.html

2. http://www.mail-archive.com/haifux%40haifux.org/msg02045.html

3. http://www.onlamp.com/pub/a/onlamp/2004/05/06/writegreatcode.html

The summary by me was not composed into a full article yet, but I don't know 
if it is usable yet.

If you're looking for help with some gcc-optimisation flags see:

http://freshmeat.net/articles/view/730/

Other compilers may vary.

Regards,

Shlomi Fish

 Thanking you
 Sankar


 The information contained in this electronic message and any attachments to
 this message are intended for the exclusive use of the addressee(s) and may
 contain proprietary, confidential or privileged information. If you are not
 the intended recipient, you should not disseminate, distribute or copy this
 e-mail. Please notify the sender immediately and destroy all copies of this
 message and any attachments.

 WARNING: Computer viruses can be transmitted via email. The recipient
 should check this email and any attachments for the presence of viruses.
 The company accepts no liability for any damage caused by any virus
 transmitted by this email.

 www.wipro.com

 To unsubscribe, send mail to
 [EMAIL PROTECTED] with the word unsubscribe in the message
 body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]

-- 

-
Shlomi Fish  [EMAIL PROTECTED]
Homepage:http://www.shlomifish.org/

95% of the programmers consider 95% of the code they did not write, in the
bottom 5%.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread Oron Peled
On Thursday, 29 בJune 2006 14:20, [EMAIL PROTECTED] wrote:
 The information contained... may contain proprietary, confidential or
 privileged information. If you are not the intended recipient, you
 should not disseminate, distribute or copy this e-mail.

Your company mail admins have the nerve to tell us what to do on OUR
mailing list. Boy, we can have a new dictionary entry for Hutzpa.

 Please notify the sender immediately

Poor Sankar, it's obviously not your fault (unless you happen to be
Wipro mail admin). You are hereby notified that I'm keeping disseminating,
distributing and copying this mail. You may forward this to whom it
may concern.

 WARNING: Computer viruses can be transmitted via email. The recipient
 should check this email and any attachments for the presence of viruses.
 The company accepts no liability for any damage caused by any virus
 transmitted by this email.

How obvious. With such stupid and embarrassing signatures automatically 
appended to their employees mail, would you believe they could choose
a less vulnerable operating system?

 www.wipro.com

A name to remember...

-- 
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

Two things are infinite: the universe and human stupidity; and I'm
not sure about the universe.  [Albert Einstein].

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread Diego Iastrubni
ביום חמישי, 29 ביוני 2006, 22:42, כתבת:
  WARNING: Computer viruses can be transmitted via email. The recipient
  should check this email and any attachments for the presence of viruses.
  The company accepts no liability for any damage caused by any virus
  transmitted by this email.

 How obvious. With such stupid and embarrassing signatures automatically
 appended to their employees mail, would you believe they could choose
 a less vulnerable operating system?
Which reminds me... wine is still a piece of garbage. I tried on one of those 
viruses a few days ago... nothing.  Well, even if they are transmitted, they 
cant do a thing. 

w h a t e v e r . . . 

-- 
diego, kde-il translation team

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread Michael Vasiliev
On Thursday June 29 2006 23:14, Diego Iastrubni wrote:

[Isn't your kmail supposed to insert the right quote phrase depending on the 
language you wrote this email in?]

   WARNING: Computer viruses can be transmitted via email. The recipient
   should check this email and any attachments for the presence of
   viruses. The company accepts no liability for any damage caused by any
   virus transmitted by this email.
 
  How obvious. With such stupid and embarrassing signatures automatically
  appended to their employees mail, would you believe they could choose
  a less vulnerable operating system?

 Which reminds me... wine is still a piece of garbage. I tried on one of
 those viruses a few days ago... nothing.  Well, even if they are
 transmitted, they cant do a thing.

Yeah, looks like wine is still not up to running the latest in viral fashion 
line. :)  You'll have to run you know what OS in a virtual machine to test 
and dissect the latest virus you got in your mail. I recommend to dig the 
most ancient version you have to go and surprise the little wormy. Hours of 
fun.

-- 
Sincerely Yours,
Michael Vasiliev

.. Any resemblance between the above views and those of my employer, my 
terminal, or the view out my window are purely coincidental.  Any resemblance 
between the above and my own views is non-deterministic.  The question of the 
existence of views in the absence of anyone to hold them is left as an 
exercise for the reader.  The question of the existence of the reader is left 
as an exercise for the second god coefficient.  (A discussion of 
non-orthogonal, non-integral polytheism is beyond the scope of this article.)

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: optimization guidelines required for C.

2006-06-29 Thread Shachar Shemesh

Diego Iastrubni wrote:


Which reminds me... wine is still a piece of garbage.

Now, now. That's not fair.
 I tried on one of those 
viruses a few days ago... nothing.
Wine was never meant to run HW drivers and other kernel space programs. 
Sorry.
w h a t e v e r . . . 
  

Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]