英创BC3.1嵌入式开发工具中文指南

需积分: 0 2 下载量 159 浏览量 更新于2024-07-28 收藏 477KB PDF 举报
"bc31工具使用中文手册提供了英创信息技术有限公司于2005年3月发布的关于BC3.1集成开发调试软件的详细介绍。BC3.1是一款适用于x86系列CPU平台的开发工具,支持C/C++和汇编编程,以其高效的编译性能和直观的用户界面深受开发者喜爱。在嵌入式系统的发展中,BC3.1尤其在uCOS-II等操作系统开发中扮演重要角色。 该手册主要针对英创嵌入式网络模块应用程序的开发进行指导,强调了BC3.1集成开发环境(IDE)的设置、工程文件PRJ的使用、在线帮助功能以及错误处理。开发者需要在工作盘上建立一个以网络模块名称(如NetBox2、ETR100等)为根目录的结构,便于管理和组织代码。 手册首先介绍了如何启动BC31,指出在正确安装后,用户应能在任意工作目录下通过执行命令`bc`进入集成开发环境。初次运行BC31,用户会看到如图1所示的主界面。快捷键F3在此环境下常用以打开文件对话框,如图2所示。 对于读者,手册假设他们已经具备基本的C语言编程知识,对于C++用户,要求理解面向对象编程(OOP)概念;而对于需要在程序中嵌套汇编的开发者,则需要有x86汇编的基本技能。因此,手册的重点在于详细介绍BC3.1 IDE的配置,以及如何利用其进行程序设计和项目管理,而不是深入讲解C/C++或汇编语言本身。 这份手册为BC3.1的使用者提供了一套实用的指南,旨在帮助他们更有效地利用这款强大的工具进行嵌入式应用程序的开发,提高开发效率。"

帮我分析这段abap代码:FUNCTION zhs_jcy_dmt001. *"---------------------------------------------------------------------- *"*"本地接口: *" IMPORTING *" VALUE(IM_MTART) TYPE ZHS_RANGE_MTART OPTIONAL *" VALUE(IM_MATKL) TYPE ZHS_RANGE_MATKL OPTIONAL *" VALUE(IM_SENDMSG) TYPE FLAG DEFAULT SPACE *" TABLES *" ET_DATA STRUCTURE ZHS_JCY_DTM001 OPTIONAL *"---------------------------------------------------------------------- INCLUDE zgen_bc_x_fmlog_first_phase. WAIT UP TO 3 SECONDS. INCLUDE zgen_bc_x_fmlog_last_phase. EXIT. DATA: lo_jcy TYPE REF TO zcl_hans_jcy_handle, lt_dtm001 TYPE TABLE OF zhs_jcy_dtm001, ls_dtm001 TYPE zhs_jcy_dtm001, lt_dtmc01 TYPE TABLE OF zhs_jcy_dmt01, ls_dtmc01 TYPE zhs_jcy_dmt01. "实例化类 CREATE OBJECT lo_jcy EXPORTING im_hs_tcode = gc_hs_tcode_dtm001. "判断监控点是否启用 IF lo_jcy->is_active( ) EQ zcl_hans_jcy_handle=>no. RETURN. ENDIF. PERFORM frm_get_dmtc01. REFRESH:lt_dtm001. SELECT a~mtart a~matnr b~maktx a~matkl INTO CORRESPONDING FIELDS OF TABLE lt_dtm001 FROM mara AS a INNER JOIN makt AS b ON a~matnr EQ b~matnr AND b~spras EQ sy-langu WHERE mtart IN im_mtart AND matkl IN im_matkl. DATA: l_char TYPE c, l_num TYPE n, l_len TYPE i, l_cnt TYPE i. LOOP AT lt_dtm001 INTO ls_dtm001. CLEAR l_cnt. LOOP AT gt_dtmc01 INTO gs_dtmc01 WHERE mtart EQ ls_dtm001-mtart AND zmatcode NE space. CLEAR:l_char,l_len. CONDENSE: gs_dtmc01-zmatcode. l_len = strlen( gs_dtmc01-zmatcode ). DO l_len TIMES. l_char = gs_dtmc01-zmatcode+l_cnt(1). ENDDO. ENDLOOP. ENDLOOP. CHECK lt_dtm001[] IS NOT INITIAL. ls_dtm001-statm = gc_mat_statm_k. MODIFY lt_dtm001 FROM ls_dtm001 TRANSPORTING statm WHERE statm NE gc_mat_statm_k. et_data[] = lt_dtm001[]. FREE:lt_dtm001. CHECK im_sendmsg EQ 'X'. REFRESH:gt_zhs_jcy_ab_data. CLEAR: gs_return. LOOP AT et_data INTO ls_dtm001. "设置WS参数值 CLEAR gs_zhs_jcy_ab_data. * KEY值 gs_zhs_jcy_ab_data-key03 = ls_dtm001-statm. gs_zhs_jcy_ab_data-key02 = ls_dtm001-mtart. gs_zhs_jcy_ab_data-key01 = ls_dtm001-matnr. "栏位值 gs_zhs_jcy_ab_data-field01 = ls_dtm001-mtart. gs_zhs_jcy_ab_data-field02 = ls_dtm001-matnr. gs_zhs_jcy_ab_data-field03 = ls_dtm001-maktx. gs_zhs_jcy_ab_data-field04 = ls_dtm001-zmatcode. gs_zhs_jcy_ab_data-field05 = ls_dtm001-matkl. gs_zhs_jcy_ab_data-field06 = ls_dtm001-statm. APPEND gs_zhs_jcy_ab_data TO gt_zhs_jcy_ab_data. ENDLOOP. CALL METHOD lo_jcy->call_ws_monitor EXPORTING im_zhs_jcy_ab_data = gt_zhs_jcy_ab_data IMPORTING ex_return = gs_return. FREE lo_jcy. ENDFUNCTION.

2023-07-12 上传

pt_x_bc_var = Variable(torch.from_numpy(x_bc_var).float(), requires_grad=False) pt_x_in_pos_one = Variable(torch.from_numpy(x_in_pos_one).float(), requires_grad=False) pt_x_in_zeros = Variable(torch.from_numpy(x_in_zeros).float(), requires_grad=False) pt_t_in_var = Variable(torch.from_numpy(t_in_var).float(), requires_grad=False) pt_u_in_zeros = Variable(torch.from_numpy(u_in_zeros).float(), requires_grad=False) # 求边界条件的损失 net_bc_right = net(torch.cat([pt_x_in_zeros, pt_t_in_var], 1)) # u(0,t)的输出 mse_u_2 = mse_cost_function(net_bc_right, pt_u_in_zeros) # e = 0-u(0,t) 公式(2) net_bc_left = net(torch.cat([pt_x_in_pos_one, pt_t_in_var], 1)) # u(1,t)的输出 mse_u_3 = mse_cost_function(net_bc_left, pt_u_in_zeros) x_0 = torch.cat([pt_x_in_zeros, pt_t_in_var], 1) x_1 = torch.cat([pt_x_in_pos_one, pt_t_in_var], 1) pt_x_0 = x_0.detach().requires_grad_(True) pt_x_1 = x_1.detach().requires_grad_(True) net_bc_right.requires_grad_(True) net_bc_left.requires_grad_(True) u_x_0 = torch.autograd.grad(net_bc_right, pt_x_0, grad_outputs=torch.ones_like(net_bc_right), create_graph=True, allow_unused=True)[0][:, 0].unsqueeze(-1) u_x_1 = torch.autograd.grad(net_bc_left, pt_x_1, grad_outputs=torch.ones_like(net_bc_left), create_graph=True, allow_unused=True)[0][:, 0].unsqueeze(-1) u_xx_0 = torch.autograd.grad(u_x_0, pt_x_0, grad_outputs=torch.ones_like(u_x_0), create_graph=True, allow_unused=True)[0][:, 0].unsqueeze(-1) u_xx_1 = torch.autograd.grad(u_x_1, pt_x_1, grad_outputs=torch.ones_like(u_x_1), create_graph=True, allow_unused=True)[0][:, 0].unsqueeze(-1)这串代码有什么问题吗?该怎么解决

2023-06-02 上传

select c.area_name,c.mon,c.count,ifnull(c1.count1,0),ifnull(c1.count1,0)/count * 100 from ( select a.area_name,MONTH(pb.wlpb_create_time) mon,count(pb.id) count from bc_company_info b inner join ( select b.id from wk_ledger_produce_gather g left join bc_company_info b on b.id =g.bci_id where g.wlpg_year =2022 group by b.id HAVING sum(g.wlpg_total_produce) >=30 UNION select b.id from wk_plan_info p left join wk_plan_danger d on d.wpi_id = p.id left join bc_company_info b on b.id = p.bci_id where p.wpi_year = 2022 group by b.id HAVING sum(d.wpd_this_produce) >30) b1 on b1.id = b.id left join wk_ledger_produce_bill pb on pb.bci_id = b.id left join sys_area a on a.id = b.bci_city where pb.wlpb_create_time >'2023-01-01 00:00:00' group by b.bci_city,MONTH(pb.wlpb_create_time) ) c left join ( select a.area_name,MONTH(pb.wlpb_create_time) mon,count(pb.id) count1 from bc_company_info b inner join ( select b.id from wk_ledger_produce_gather g left join bc_company_info b on b.id = g.bci_id where g.wlpg_year =2022 group by b.id HAVING sum(g.wlpg_total_produce) >=30 UNION select b.id from wk_plan_info p left join wk_plan_danger d on d.wpi_id = p.id left join bc_company_info b on b.id = p.bci_id where p.wpi_year = 2022 group by b.id HAVING sum(d.wpd_this_produce) >30) b1 on b1.id = b.id left join wk_ledger_produce_bill pb on pb.bci_id = b.id left join sys_area a on a.id = b.bci_city where pb.wldb_end_from != 1 and pb.wlpb_create_time >'2023-01-01 00:00:00' group by b.bci_city,MONTH(pb.wlpb_create_time)) c1 on c.area_name = c1.area_name and c.mon = c1.mon 这段SQL怎么优化

2023-06-09 上传