From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA30394; Wed, 10 Dec 2003 00:35:02 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA29892 for ; Wed, 10 Dec 2003 00:35:01 +0100 (MET) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB9NZ0100609 for ; Wed, 10 Dec 2003 00:35:00 +0100 (MET) Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id hB9NYsC27820 for ; Tue, 9 Dec 2003 17:34:56 -0600 (CST) Date: Tue, 9 Dec 2003 18:35:42 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Ocaml Mailing List Subject: [Caml-list] Long constant strings? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; string-:01 compiler:01 -bit:01 compile:02 string:03 string:03 redirect:95 mean:05 output:05 strings:06 strings:06 brian:06 brian:06 basically:06 source:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I want to create a long, constant string- by long I mean 64K characters (it's basically an 8-bit lookup table). Needless to say, I don't a 64K long line (256K actually, as every character is of the \xxx, where x is digits). So currently I'm building the string up as the concatentation of 4K 16-character strings (each 16-character string fits nicely on a line). But looking at the assembly code output of this, I notice that it's concatenating the strings at run time. Am I missing some nice way of doing this? If not, is there any chance that a future rev of the compiler will recognize this idiom and concatenate the strings at compile time? -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners