<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Binary search in assembly language in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242478#M33351</link>
    <description>&amp;gt; I think converting HLL to assembly language&lt;BR /&gt;&amp;gt; will make execution faste.&lt;BR /&gt;&lt;BR /&gt;What, you think that (1) the COBOL-generated&lt;BR /&gt;code is doing something stupid, and that (2)&lt;BR /&gt;you can generate better code than the&lt;BR /&gt;compiler's code generator?&lt;BR /&gt;&lt;BR /&gt;(1):  I doubt it.&lt;BR /&gt;(2):  I doubt it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.thefreedictionary.com/dodo" target="_blank"&gt;http://www.thefreedictionary.com/dodo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See definition 3.&lt;BR /&gt;&lt;BR /&gt;If (1) _is_ true, then you should be able to&lt;BR /&gt;do better using some other, easier-to-use&lt;BR /&gt;language than assembly.  If that works, then&lt;BR /&gt;you can worry about what further improvement&lt;BR /&gt;you might get from converting your new code&lt;BR /&gt;to assembly (assuming that (2) is also true).</description>
    <pubDate>Sat, 02 Aug 2008 01:47:37 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-08-02T01:47:37Z</dc:date>
    <item>
      <title>Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242472#M33345</link>
      <description>I have written Perl code for binary search.I have the code in attached file.In code I have given input by using external file "table" having some animal names in sorted order &amp;amp; printed the index position of required animal name.&lt;BR /&gt;Can anyone please help me to convert it into assembly language?&lt;BR /&gt;If anyone can provide assembly language code for binary search (having different program logic),that will be also helpfull.&lt;BR /&gt;Thanks in advance..</description>
      <pubDate>Wed, 30 Jul 2008 01:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242472#M33345</guid>
      <dc:creator>Dodo_5</dc:creator>
      <dc:date>2008-07-30T01:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242473#M33346</link>
      <description>Assembly language for which CPU type?  There&lt;BR /&gt;is more than one assembly language, you know.&lt;BR /&gt;&lt;BR /&gt;Why would a sane person (or you) wish to&lt;BR /&gt;convert a program like this into a&lt;BR /&gt;non-portable assembly language, rather than&lt;BR /&gt;into some high(er)-level language like C?&lt;BR /&gt;&lt;BR /&gt;Homework?  Challenge?  Mental disorder?</description>
      <pubDate>Wed, 30 Jul 2008 01:43:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242473#M33346</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-30T01:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242474#M33347</link>
      <description>thanks for your comments.&lt;BR /&gt;I want the code in HLASM assembly language.I want to put the assembler code in mainframe to replace the "SEARCH ALL" command in COBOL for binary search for performance improvement.&lt;BR /&gt;So Can anyone please provide me the HLASM assembler code for binary search?&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jul 2008 05:53:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242474#M33347</guid>
      <dc:creator>Dodo_5</dc:creator>
      <dc:date>2008-07-30T05:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242475#M33348</link>
      <description>Why not code the binary search in COBOL (if&lt;BR /&gt;you think that the built-in is so slow)?&lt;BR /&gt;&lt;BR /&gt;Or C?  Or anything other than assembly?&lt;BR /&gt;Modern compilers for modern CPUs can often&lt;BR /&gt;optimize high-level-language code to get a&lt;BR /&gt;better result than even a good assembly&lt;BR /&gt;programmer will typically get.&lt;BR /&gt;&lt;BR /&gt;Why do you believe that the binary search is&lt;BR /&gt;your performance bottleneck?</description>
      <pubDate>Wed, 30 Jul 2008 07:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242475#M33348</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-30T07:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242476#M33349</link>
      <description>&amp;gt;replace the "SEARCH ALL" command in COBOL for binary search for performance improvement.&lt;BR /&gt;&lt;BR /&gt;Why would you think you can do better than what the compiler can do?&lt;BR /&gt;&lt;BR /&gt;My COBOLII/iX compiler totally inlined SEARCH ALL, handling multiple keys with combination of ascending/descending.&lt;BR /&gt;The reason I did this, was the previous architecture had a runtime that was too complicated because it had to interpret how to compare the data types.</description>
      <pubDate>Fri, 01 Aug 2008 07:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242476#M33349</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-01T07:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242477#M33350</link>
      <description>I think converting HLL to assembly language will make execution faste.So I am trying it to convert.&lt;BR /&gt;Other than that if you have any other idea,you can share with me.&lt;BR /&gt;Also I want to know about the inlined code of "SEARCH ALL".What kind of modifications have you done in code &amp;amp; compiler?&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2008 23:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242477#M33350</guid>
      <dc:creator>Dodo_5</dc:creator>
      <dc:date>2008-08-01T23:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242478#M33351</link>
      <description>&amp;gt; I think converting HLL to assembly language&lt;BR /&gt;&amp;gt; will make execution faste.&lt;BR /&gt;&lt;BR /&gt;What, you think that (1) the COBOL-generated&lt;BR /&gt;code is doing something stupid, and that (2)&lt;BR /&gt;you can generate better code than the&lt;BR /&gt;compiler's code generator?&lt;BR /&gt;&lt;BR /&gt;(1):  I doubt it.&lt;BR /&gt;(2):  I doubt it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.thefreedictionary.com/dodo" target="_blank"&gt;http://www.thefreedictionary.com/dodo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See definition 3.&lt;BR /&gt;&lt;BR /&gt;If (1) _is_ true, then you should be able to&lt;BR /&gt;do better using some other, easier-to-use&lt;BR /&gt;language than assembly.  If that works, then&lt;BR /&gt;you can worry about what further improvement&lt;BR /&gt;you might get from converting your new code&lt;BR /&gt;to assembly (assuming that (2) is also true).</description>
      <pubDate>Sat, 02 Aug 2008 01:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242478#M33351</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-08-02T01:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242479#M33352</link>
      <description>Are you serious!!!!&lt;BR /&gt;&lt;BR /&gt;You may not get any benifits out of it(including performance).&lt;BR /&gt;&lt;BR /&gt;The oppourtunity cost(&lt;A href="http://en.wikipedia.org/wiki/Opportunity_cost)" target="_blank"&gt;http://en.wikipedia.org/wiki/Opportunity_cost)&lt;/A&gt; lost will be too high in doing this.&lt;BR /&gt;&lt;BR /&gt;I suggest converting the program to C will be eaiser/simpler/better.&lt;BR /&gt;</description>
      <pubDate>Sat, 02 Aug 2008 06:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242479#M33352</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2008-08-02T06:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Binary search in assembly language</title>
      <link>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242480#M33353</link>
      <description>&amp;gt;I think converting HLL to assembly language will make execution faster.&lt;BR /&gt;&lt;BR /&gt;Unless your COBOL compiler is pretty stupid, that probably won't help.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also I want to know about the inlined code of "SEARCH ALL".  What kind of modifications have you done in code &amp;amp; compiler?&lt;BR /&gt;&lt;BR /&gt;This won't help you because you would have to use the COBOLII/iX compiler on MPE/iX, which is out of support.  ;-)&lt;BR /&gt;&lt;BR /&gt;I was just mentioning it because I know how good the code can be.  It's not rocket science.&lt;BR /&gt;Of course from the previous compiler, you can do a bad job too, where it is all done in the runtime library, with interpretation on every compare and worst of all, didn't know how to handle multiple sort keys.  :-(</description>
      <pubDate>Sat, 02 Aug 2008 08:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/binary-search-in-assembly-language/m-p/4242480#M33353</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-02T08:58:38Z</dc:date>
    </item>
  </channel>
</rss>

