[Slackbuilds-users] Desmume on 64-bit - optimization flag

Luis Henrique Mello lmello.009 at gmail.com
Wed Jan 23 01:29:00 UTC 2013


The correct 'if' statement would be:

if grep ssse3 /proc/cpuinfo 1> /dev/null; then
   SLKCFLAGS="$SLKCFLAGS -msse3"
fi

On 01/22/2013 02:23 PM, Larry Hajali wrote:
> Could just add an if statement that will add it to the SLKCFLAGS if it
> is detected on the computer.
>
> if grep [^s]sse3 /proc/cpuinfo 2>/dev/null; then
>    SLKCFLAGS="$SLKCFLAGS -msse3"
> fi
>
> Not sure if this leads to undesirable results.  I don't have an sse3
> capable processor, so I can't test.
>
> --Larry
>
> On Tue, Jan 22, 2013 at 7:42 AM, King Beowulf <kingbeowulf at gmail.com
> <mailto:kingbeowulf at gmail.com>> wrote:
>
>     Add it as a switch option? That way there is a reminder for those
>     users who can benefit from ss3 as they might not think of it or
>     release otherwise.
>
>
>     On 1/22/13, Tobias Eichmann <slackeee at gmail.com
>     <mailto:slackeee at gmail.com>> wrote:
>      > On Tue, Jan 22, 2013 at 01:45:54AM -0200, Luis Henrique Mello wrote:
>      >> Hi,
>      >>
>      >> I've noticed that adding '-msse3' to the $SLKCFLAGS on a x86_64 bit
>      >> build improves performance.
>      >>
>      >> - Luis
>      >> _______________________________________________
>      >> SlackBuilds-users mailing list
>      >> SlackBuilds-users at slackbuilds.org
>     <mailto:SlackBuilds-users at slackbuilds.org>
>      >> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>      >> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>      >> FAQ - http://slackbuilds.org/faq/
>      >>
>      >
>      > Not all x86_64 CPUs support SSE3 (the lowest common denominator
>     is SSE2),
>      > so
>      > adding this option by default will render the script unusable for
>     owners of
>      > such CPUs.
>      >
>      > - Tobi
>      >
>      > --
>      > Tobias Eichmann, slackeee at gmail.com <mailto:slackeee at gmail.com>
>      > LinuxQuestions.org Forum Moderator
>      > http://www.linuxquestions.org/questions/user/tobisgd-506425/
>      >
>      > _______________________________________________
>      > SlackBuilds-users mailing list
>      > SlackBuilds-users at slackbuilds.org
>     <mailto:SlackBuilds-users at slackbuilds.org>
>      > http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>      > Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>      > FAQ - http://slackbuilds.org/faq/
>      >
>      >
>
>     --
>     Sent from my mobile device
>
>     You! What PLANET is this!
>              -- McCoy, "The City on the Edge of Forever", stardate 3134.0
>     _______________________________________________
>     SlackBuilds-users mailing list
>     SlackBuilds-users at slackbuilds.org
>     <mailto:SlackBuilds-users at slackbuilds.org>
>     http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>     Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>     FAQ - http://slackbuilds.org/faq/
>
>
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>



More information about the SlackBuilds-users mailing list