From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 0CED5385783B for ; Tue, 6 Jul 2021 04:35:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0CED5385783B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BED5533BEBE; Tue, 6 Jul 2021 04:35:50 +0000 (UTC) Date: Tue, 6 Jul 2021 00:35:48 -0400 From: Mike Frysinger To: ElijaxApps Cc: newlib@sourceware.org Subject: Re: Help porting newlib to a new CPU architecture (sorta) Message-ID: Mail-Followup-To: ElijaxApps , newlib@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2021 04:35:53 -0000 On 06 Jul 2021 02:49, ElijaxApps wrote: > I designed a Logisim schematic of a full system, able to run programs in > the simulation, as shown in this video: > > https://www.youtube.com/watch?v=UP6tO8x5I5A > > Is based on a SAP-1 (Simplest as Possible) basis, containing 4 GP registers > (8 bit), stack for function operations (up to 256 depth levels of > recursivity), 24bit plain RAM component, and a simple ALU able to echo > strings and perform not floating point math. > > AFAIK, newlib is suitable for embedded devices, and I want to create the > full toolchain for C/C++ language at least. i don't know that these would work that well (or at all) on an 8-bit CPU. you'd really want a 32-bit CPU nowadays as a minimum if you want to support modern software. even DOS (iiuc) requires at least a 16-bit CPU. not sure FreeDOS supports 16-bit though, or if it too requires 32-bit. -mike